summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwritedeclaration.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-23 12:03:27 +0200
committerhjk <hjk@qt.io>2019-07-30 09:34:36 +0200
commit4fa0b415237040d806758ab5374055ab2c32d84c (patch)
tree7e1ce49a0f5e2d0e264cb21064c34ef7dc75ab85 /src/tools/uic/cpp/cppwritedeclaration.h
parent31753adebe0f19b90f332e81e1a9b063b40f982d (diff)
uic: Avoid use of Q_UNUSED in the generated code
Instead, use (void)x; directly. The current use of Q_UNUSED(x); generates warnings for an empty statement the expansion of Q_UNUSED contains a semicolon already. Emitting Q_UNUSED(x) without the extra semicolon would be an option, too, but as the future of Q_UNUSED's embedded semicolon seems unclear right now, avoid its use altogether. The change affects only generated code that's barely ever read by a human, so the overall utility of "improved readability" of Q_UNUSED in that place is questionable anyway. Change-Id: I332527ed7c202f779bd82290517837e3ecf09a08 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwritedeclaration.h')
0 files changed, 0 insertions, 0 deletions