[Interest] Klocwork errors in Qt

Ramakanth Kesireddy rama.kesi at gmail.com
Fri Dec 6 03:44:20 CET 2019


Thanks for all the suggestions. Atleast we are not using auto for the
concatenation of QStrings.

On Thu, Dec 5, 2019 at 2:33 PM Giuseppe D'Angelo via Interest <
interest at qt-project.org> wrote:

> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191206/9fc8ad80/attachment.html>


More information about the Interest mailing list