Il 04/12/19 02:36, Christian Gagneraud ha scritto:
BTW, Clazy has a check for that very specific case, which just show how dangerous is this QStringBuilder. https://github.com/KDE/clazy/blob/master/docs/checks/README-auto-unexpected-qstringbuilder.md
As a professional developer, one should strive for keeping a codebase under clazy, clang-tidy, and friends; and always be under -Werror.
There are no excuses for not fixing mistakes that tooling can detect. Hence, this problem isn't actually a big deal at all (or: it isn't any more, since we have clazy). It falls into the general category of "ways C++ lets you shoot in your own foot", which is a much broad discussion.
Kudos to Sérgio, -- Giuseppe D'Angelo | giuseppe.dang...@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
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest