qt5base-lts/tests/auto/corelib/io/qdebug
Kai Koehne e668837b9c QDebugStateSaver: Fix trailing space issues
~QDebug() removes any trailing space if autoInsertSpaces() is true.
However, if one uses QDebugStateSaver the global autoInsertSpaces might
be false, but a space was added by a custom operator<<.

Explicitly check for this in QDebugStateSaverPrivate::restoreState. Remove
any trailing space if the local state asks for adding trailing spaces, but
the original one doesn't. Add a trailing space if the local state doesn't
ask for one, but the global state does.

Change-Id: I243b5c76d5ed2c1ec4820da35ab6e254da1551d9
Reviewed-by: David Faure <david.faure@kdab.com>
2014-07-23 13:33:25 +02:00
..
.gitignore Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
qdebug.pro Fix data race on QLoggingCategory when using qDebug from multiple threads 2014-06-20 21:54:04 +02:00
tst_qdebug.cpp QDebugStateSaver: Fix trailing space issues 2014-07-23 13:33:25 +02:00