From 37714d255b1760e3a40b0de914ed455c81fbb489 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 28 Jan 2022 10:52:58 +0100 Subject: [PATCH] QCalendar: replace ostream-style qWarning with printf-style one Saves the include and expands to a lot less code. Pick-to: 6.3 6.2 Change-Id: Ic1a0aa707e7c0d4bd54da45a7fcafbf898681b2d Reviewed-by: Edward Welbourne --- src/corelib/time/qcalendar.cpp | 5 ++--- 1 file 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 #include -#include #include @@ -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; }