[clazy] [Bug 361489] New: qdeleteall: Do not warn on qDeleteAll(some_hash.values(some_key))

Richard via KDE Bugzilla bugzilla_noreply at kde.org
Thu Apr 7 10:23:32 BST 2016


https://bugs.kde.org/show_bug.cgi?id=361489

            Bug ID: 361489
           Summary: qdeleteall: Do not warn on
                    qDeleteAll(some_hash.values(some_key))
           Product: clazy
           Version: unspecified
          Platform: Fedora RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: r.oehlinger at avibit.com
                CC: smartins at kde.org

I think the check should not warn and it should definitely not propose the
wrong fix on code like this.
QHash <int, MyClass*> some_hash;
//...
qDeleteAll(some_hash.values(some_key))
Just the call without arguments should be flaged:
qDeleteAll(some_hash.values())

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list