summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlocale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qlocale.cpp')
-rw-r--r--src/corelib/tools/qlocale.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp
index 78334563dd..f589777e65 100644
--- a/src/corelib/tools/qlocale.cpp
+++ b/src/corelib/tools/qlocale.cpp
@@ -3583,10 +3583,12 @@ QString QLocale::nativeCountryName() const
#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<(QDebug dbg, const QLocale &l)
{
- dbg.nospace() << "QLocale(" << qPrintable(QLocale::languageToString(l.language()))
- << ", " << qPrintable(QLocale::scriptToString(l.script()))
- << ", " << qPrintable(QLocale::countryToString(l.country())) << ')';
- return dbg.space();
+ QDebugStateSaver saver(dbg);
+ dbg.nospace().noquote()
+ << "QLocale(" << QLocale::languageToString(l.language())
+ << ", " << QLocale::scriptToString(l.script())
+ << ", " << QLocale::countryToString(l.country()) << ')';
+ return dbg;
}
#endif
QT_END_NAMESPACE