path: root/src/plugins
diff options
authorMarc Mutz <>2015-10-17 17:48:34 +0200
committerMarc Mutz <>2016-03-11 10:56:15 +0000
commit134cad32d73c776ffdc9db89a24f582bb847f165 (patch)
treeee04e32e8437223750e02f276851cf3661d1fad9 /src/plugins
parent5bc54c878f012e7a2569c2e3cee87be90a38af21 (diff)
QtCore: use printf-style qWarning/qDebug where possible (I)
The printf-style version of QDebug expands to a lot less code than the std::ostream-style version. Of course, you pay in type safety (but compilers warn about it these days), you cannot stream complex Qt types and streaming QStrings is awkward, but in many cases you actually improve on readability. But the main reason is that something that's not supposed to be executed under normal operation has no business bloating executable code size. This is not an attempt at converting all qWarnings() to printf-style, only the low-hanging fruit. In this first part, replace qWarning() << "" with qWarning("..."). Saves ~750b in text size on optimized GCC 5.3 AMD64 builds. Change-Id: I8bf3e46cd5a6b2cae0ceb3e355a50f61925c63d3 Reviewed-by: Kai Koehne <>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions