diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-01-23 16:19:11 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-02-09 11:30:02 +0000 |
commit | 868201155fd677dbc6d14346f5ea61e82ebce27b (patch) | |
tree | 75d02a144c205d659e5851f95f306e3a12b0ff5e /src/corelib/tools/qeasingcurve.cpp | |
parent | 6389160f04322449c34bd1ecfe53983e3b588943 (diff) |
QtCore: Use QDebugStateSaver in (almost) all QDebug operator<<
Unify the behavior of the different operator<< by always using
QDebugStateSaver (appending an optional space at exit), and making
sure that the space(), nospace() setting isn't 'leaked'.
Change-Id: I38e4f82fa6f7419d8b5edfc4dc37495af497e8ac
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/corelib/tools/qeasingcurve.cpp')
-rw-r--r-- | src/corelib/tools/qeasingcurve.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qeasingcurve.cpp b/src/corelib/tools/qeasingcurve.cpp index e6fb531d7d..7d63f95d1b 100644 --- a/src/corelib/tools/qeasingcurve.cpp +++ b/src/corelib/tools/qeasingcurve.cpp @@ -1417,6 +1417,7 @@ qreal QEasingCurve::valueForProgress(qreal progress) const #ifndef QT_NO_DEBUG_STREAM QDebug operator<<(QDebug debug, const QEasingCurve &item) { + QDebugStateSaver saver(debug); debug << "type:" << item.d_ptr->type << "func:" << item.d_ptr->func; if (item.d_ptr->config) { |