[kde-windows] [Bug 308763] kdepimlibs compilation fails
Nico Kruber
nico.kruber at gmail.com
Sun Apr 21 11:25:53 UTC 2013
https://bugs.kde.org/show_bug.cgi?id=308763
Nico Kruber <nico.kruber at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |CONFIRMED
Ever confirmed|0 |1
--- Comment #24 from Nico Kruber <nico.kruber at gmail.com> ---
actually, I think the code below is more correct for the latin1 correction:
const QByteArray lat1Url = a.url().toString().toLatin1();
QString::fromLatin1(lat1Url.constData(), lat1Url.size())
note the missing reference in the first line. If I'm not mistaken, otherwise
the temporary object being created by toLatin1() may be deleted at the next
sequence point (the end of this line) and the reference may become invalid.
I'll create an appropriate patch and commit it if there are no further
comments...
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kde-windows
mailing list