summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-01-28 10:52:58 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-01-28 22:00:22 +0100
commit37714d255b1760e3a40b0de914ed455c81fbb489 (patch)
tree750bf017bc2d75a71891c80ba120e5e9af6eb8c2
parentd030606a5a6c9c30972892f94ac656e983183349 (diff)
QCalendar: replace ostream-style qWarning with printf-style one
Saves the <qdebug.h> include and expands to a lot less code. Pick-to: 6.3 6.2 Change-Id: Ic1a0aa707e7c0d4bd54da45a7fcafbf898681b2d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/corelib/time/qcalendar.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/time/qcalendar.cpp b/src/corelib/time/qcalendar.cpp
index 5d0b55ad89..9ef7216514 100644
--- a/src/corelib/time/qcalendar.cpp
+++ b/src/corelib/time/qcalendar.cpp
@@ -55,7 +55,6 @@
#include "qcalendarmath_p.h"
#include <qhash.h>
#include <qreadwritelock.h>
-#include <qdebug.h>
#include <vector>
@@ -342,8 +341,8 @@ void QCalendarRegistry::registerBackendLockHeld(QCalendarBackend *backend, const
for (const auto &name : names) {
if (byName.contains(name)) {
Q_ASSERT(system == QCalendar::System::User);
- qWarning() << "Cannot register name" << name << "(already in use) for"
- << backend->name();
+ qWarning("Cannot register name %ls (already in use) for %ls",
+ qUtf16Printable(name), qUtf16Printable(backend->name()));
} else {
byName[name] = backend;
}