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-b...@kde.org
          Reporter: kare.s...@iki.fi
                CC: smart...@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 watching all bug changes.

Reply via email to