[clazy] [Bug 487849] New: Is there any check for QMap creating an item by default when using [] to reference an item?

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri May 31 21:24:57 BST 2024


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

            Bug ID: 487849
           Summary: Is there any check for QMap creating an item by
                    default when using [] to reference an item?
    Classification: Developer tools
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: albrightsteve at johndeere.com
                CC: smartins at kde.org
  Target Milestone: ---

If you have a QMap and do if(yourMap[someKey]==someValue) it creates a map item
and later on a contains will find it despite the unintentional creation.

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


More information about the Unassigned-bugs mailing list