[clazy] [Bug 355682] New: new check: test QList.count() must be replaced by !QList.isEmpty()

Stephane MANKOWSKI via KDE Bugzilla bugzilla_noreply at kde.org
Sat Nov 21 09:53:36 GMT 2015


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

            Bug ID: 355682
           Summary: new check: test QList.count() must be replaced by
                    !QList.isEmpty()
           Product: clazy
           Version: unspecified
          Platform: Kubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: stephane at mankowski.fr

QList list;
if(list.count) {
}

must raise a warning and must be fixed by:
QList list;
if(!list.isEmpty()) {
}

Reproducible: Always

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



More information about the Unassigned-bugs mailing list