[clazy] [Bug 357966] New: MSVC does not support QStringLiteral with multi-string initializer

Kåre Särs via KDE Bugzilla bugzilla_noreply at kde.org
Thu Jan 14 08:17:19 GMT 2016


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

            Bug ID: 357966
           Summary: MSVC does not support QStringLiteral with multi-string
                    initializer
           Product: clazy
           Version: unspecified
          Platform: unspecified
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: kare.sars at iki.fi
                CC: smartins at kde.org

Strings that are separated into multiple parts don't work on Windows
together with QStringLiteral as the first string is interpreted as a
wide (16bit) string, and the second one as a narrow (8bit) string. 
(Copy pasted from Patrick Spendrin's RRs)

This fails:
QStringLiteral("Foo"   "Baar"); 
and could be replaced with QLatin1String()

This fails also but can not be replaced with QLatin1String as it does not take
.arg()
QStringLiteral("Foo %1" "Baar").arg("Foo");
Here the strings would have to be joined....

We have had some breakage on Windows when Clazy fixes have been committed...

Clazy is a great tool. Keep up the good work :)


Reproducible: Always

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



More information about the Unassigned-bugs mailing list