diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2018-10-25 11:33:04 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-11-09 21:43:12 +0000 |
commit | fe4448e9e825ce2d650c617c992fa26abda4a2c2 (patch) | |
tree | 1e657cc71d253534f8ccfd5e528e602d376dd5a9 /qmake | |
parent | 1cc30fe77d04f745263525e0d4d5e7796ecf792c (diff) |
moc: Modernize generated code a bit, use auto
Makes clang-tidy not trip over generated code while running the
modernize-use-auto checker. In theory clang-tidy just shouldn't look at
generated code of course; but in this case just modernizing the
generated code is easy, so let's do it.
Example:
.../moc_kastentoolviewwidget.cpp:78:9: warning: use auto when initializing with
a cast to avoid duplicating the type name [modernize-use-auto]
KastenToolViewWidget *_t = static_cast<KastenToolViewWidget *>(_o);
^~~~~~~~~~~~~~~~~~~~
auto
Change-Id: I10c287320e1d5b5b8e66da3e0a22d517d0275dd1
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions