Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 389 Bytes

README-qvariant-template-instantiation.md

File metadata and controls

10 lines (7 loc) · 389 Bytes

qvariant-template-instantiation

Detects when you're using QVariant::value<Foo>() instead of QVariant::toFoo().

The former results in more code being generated in theory.

False-Positives

Beware that this function doesn't work well when typedefs are involved, for example it suggests that v.toUlongLong() should replace v.value<quintptr>(), which isn't semantically correct.