[Interest] Klocwork errors in Qt
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Thu Dec 5 10:02:07 CET 2019
Il 05/12/19 00:54, Thiago Macieira ha scritto:
> Same issue (dangling pointer), no "auto" required.
Or
> QStringView f() {
> QString s("hello");
> return s;
> }
Or even
> QVector<QStringView> v;
> v << QString("world");
etc.
Really, one can build countless examples where Modern C++ will gladly
make you shoot in your own foot...
Thanks,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191205/9e9b758d/attachment.bin>
More information about the Interest
mailing list