diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-11-01 09:58:40 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-11-16 10:51:41 +0000 |
commit | c7453cf6767d5be43de878291e7eff371f200b4d (patch) | |
tree | 9274992856470e58b8ffa7d0886a62a3379ffc5b /src/gui/painting/qpaintengine_raster.cpp | |
parent | 84ff636ecf90342ccb81a67d526f42731cd07793 (diff) |
Testlib: Explicitly cast messages to const char *
Macro parameters should always be enclosed in braces when used.
Plain C strings passed in parantheses are interpreted as
const char[], at least by clang-tidy.
Implicitly decaying arrays into pointers should be avoided and
clang-tidy warns about this. Avoid both problems by always static
casting all messages to const char *.
Change-Id: I2be668169bec2823f69af3aa75086a31b0b31938
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/painting/qpaintengine_raster.cpp')
0 files changed, 0 insertions, 0 deletions