Review Request 126328: kwallet: Do not use QStringLiteral with multi strings
Valentin Rusu
valir at kde.org
Sun Dec 13 11:11:54 UTC 2015
> On Dec. 13, 2015, 1:01 a.m., Nick Shaforostoff wrote:
> > i suggest using:
> >
> > #ifdef Q_OS_WIN
> > #define U QLatin1String
> > #else
> > #define U QStringLiteral
> > #endif
Patrick's approach corresponds to a widespread practice in KF5 sources. It also has the advantage to always use the same class, everywhere.
- Valentin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126328/#review89407
-----------------------------------------------------------
On Dec. 12, 2015, 10:59 p.m., Patrick Spendrin wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126328/
> -----------------------------------------------------------
>
> (Updated Dec. 12, 2015, 10:59 p.m.)
>
>
> Review request for KDE Frameworks.
>
>
> Repository: kwallet
>
>
> Description
> -------
>
> 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.
> Replacing with QString::fromLatin1 is the easiest solution keeping
> the code layout the same, joining the strings does work too though.
>
>
> Diffs
> -----
>
> src/runtime/kwalletd/kwalletd.cpp 5f99f161a0911732c4d46ab36f2e4f3d3f3e3c4b
>
> Diff: https://git.reviewboard.kde.org/r/126328/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Patrick Spendrin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151213/9b1e6b27/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list