[clazy] [Bug 382702] New: Comparison between QMap keys false positive

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue Jul 25 11:13:02 BST 2017


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

            Bug ID: 382702
           Summary: Comparison between QMap keys false positive
           Product: clazy
           Version: unspecified
          Platform: MacPorts Packages
                OS: OS X
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: nicolas.kniebihler at dualo.org
                CC: smartins at kde.org
  Target Milestone: ---

Hi,

I use clazy v1.2.

This code is detected as a container-anti-pattern :

    QMap<int, int> map1;
    QMap<int, int> map2;
    bool res = map1.keys() == map2.keys();

but I don't see another way to do a comparison bewteen keys.

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


More information about the Unassigned-bugs mailing list