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/qgeoshape.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/qgeoshape.cpp')
-rw-r--r-- | src/positioning/qgeoshape.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/positioning/qgeoshape.cpp b/src/positioning/qgeoshape.cpp index 0ea5afea..dd3f05c7 100644 --- a/src/positioning/qgeoshape.cpp +++ b/src/positioning/qgeoshape.cpp @@ -257,20 +257,20 @@ QString QGeoShape::toString() const #ifndef QT_NO_DEBUG_STREAM QDebug operator<<(QDebug dbg, const QGeoShape &shape) { - //dbg << *shape.d_func(); + QDebugStateSaver saver(dbg); dbg.nospace() << "QGeoShape("; switch (shape.type()) { case QGeoShape::UnknownType: - dbg.nospace() << "Unknown"; + dbg << "Unknown"; break; case QGeoShape::RectangleType: - dbg.nospace() << "Rectangle"; + dbg << "Rectangle"; break; case QGeoShape::CircleType: - dbg.nospace() << "Circle"; + dbg << "Circle"; } - dbg.nospace() << ')'; + dbg << ')'; return dbg; } |