diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-01-21 14:25:41 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-01-27 07:23:05 +0100 |
commit | 4f45cb18669af8e11cfab6dc546e275b05ff4ab9 (patch) | |
tree | a2138a9c249315653b9e930a565e2eeef57c3cc5 /src/positioning/qgeoareamonitorinfo.cpp | |
parent | d8d9c4fbb6047b59b98108d6e3221206aa926ccd (diff) | |
download | qtlocation-4f45cb18669af8e11cfab6dc546e275b05ff4ab9.tar.gz |
Ensure QtPositioning value types don't change QDebug spacing policy
Change-Id: I1a98df26582957b0df136e98acf5d2754fe45295
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/positioning/qgeoareamonitorinfo.cpp')
-rw-r--r-- | src/positioning/qgeoareamonitorinfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/positioning/qgeoareamonitorinfo.cpp b/src/positioning/qgeoareamonitorinfo.cpp index 672bfbff..e8112672 100644 --- a/src/positioning/qgeoareamonitorinfo.cpp +++ b/src/positioning/qgeoareamonitorinfo.cpp @@ -360,11 +360,12 @@ QDataStream &operator>>(QDataStream &ds, QGeoAreaMonitorInfo &monitor) #ifndef QT_NO_DEBUG_STREAM QDebug operator<<(QDebug dbg, const QGeoAreaMonitorInfo &monitor) { + QDebugStateSaver saver(dbg); dbg.nospace() << "QGeoAreaMonitorInfo(\"" << qPrintable(monitor.name()) << "\", " << monitor.area() << ", persistent: " << monitor.isPersistent() << ", expiry: " << monitor.expiration() << ")"; - return dbg.space(); + return dbg; } #endif |