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

Sergio Martins via KDE Bugzilla bugzilla_noreply at kde.org
Thu Apr 7 13:10:09 BST 2016


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

Sergio Martins <smartins at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1
           Assignee|unassigned-bugs at kde.org     |smartins at kde.org

--- Comment #1 from Sergio Martins <smartins at kde.org> ---
I'll fix the warning message but not remove it.

hash.values(key), just like hash.values() will malloc to create a temporary
list

hash.values(key) is a bit more cumbersome for you to fix though, you'd have to
write a for loop.
So I've added QHash::equal_range(key), which will be available in Qt 5.7.

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



More information about the Unassigned-bugs mailing list