Bug 404329 - warn about QVariant::value<float>
Summary: warn about QVariant::value<float>
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-14 09:17 UTC by Milian Wolff
Modified: 2019-02-15 18:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milian Wolff 2019-02-14 09:17:38 UTC
I got a warning for value<QString> but not value<float>, even though toFloat exists. Probably an oversight?

clazy version: 1.5
clang version: 7.0.1
Comment 1 Sergio Martins 2019-02-15 18:14:56 UTC
Git commit c2fd44b79b1169d0fa2505403f0e7f0416479b94 by Sergio Martins.
Committed on 15/02/2019 at 18:13.
Pushed by smartins into branch 'master'.

qvariant-template-instantiation: Also warn for int and float

M  +1    -1    src/checks/level0/qvariant-template-instantiation.cpp
M  +13   -13   tests/qvariant-template-instantiation/main.cpp
M  +4    -2    tests/qvariant-template-instantiation/main.cpp.expected

https://commits.kde.org/clazy/c2fd44b79b1169d0fa2505403f0e7f0416479b94