[clazy] [Bug 361691] New: Suggestion to turn string into QStringLiteral instead of QLatin1String

Stephen Kelly via KDE Bugzilla bugzilla_noreply at kde.org
Tue Apr 12 21:40:29 BST 2016


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

            Bug ID: 361691
           Summary: Suggestion to turn string into QStringLiteral instead
                    of QLatin1String
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: steveire at gmail.com
                CC: smartins at kde.org

The qstring-allocations unit test contains

    s15.contains("ff"); // Warning, should be QStringLiteral
    s15.indexOf("ff"); // Warning, should be QStringLiteral

However, both `contains()` and `indexOf()` have overloads taking a
QLatin1String. Shouldn't clazy change these to QLatin1String instead of
QStringLiteral?

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



More information about the Unassigned-bugs mailing list