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>
This commit is contained in:
Marc Mutz 2022-01-28 10:52:58 +01:00
parent d030606a5a
commit 37714d255b

View File

@ -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;
}