From b12f82018df21cb8a64726297020f0fbea6d8873 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 8 Jun 2020 15:18:31 +0200 Subject: [PATCH] QResource: Use some qUtf16Printable() instead of toLocal8Bit().data() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia255052ea33e7d7fccb0627accd20315bbe5d393 Reviewed-by: MÃ¥rten Nordheim --- src/corelib/io/qresource.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index 51c47d7fc60..dfaae20c346 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -814,8 +814,8 @@ void QResource::addSearchPath(const QString &path) { if (!path.startsWith(QLatin1Char('/'))) { - qWarning("QResource::addResourceSearchPath: Search paths must be absolute (start with /) [%s]", - path.toLocal8Bit().data()); + qWarning("QResource::addResourceSearchPath: Search paths must be absolute (start with /) [%ls]", + qUtf16Printable(path)); return; } const auto locker = qt_scoped_lock(resourceMutex()); @@ -1314,8 +1314,8 @@ QResource::registerResource(const QString &rccFilename, const QString &resourceR { QString r = qt_resource_fixResourceRoot(resourceRoot); if(!r.isEmpty() && r[0] != QLatin1Char('/')) { - qWarning("QDir::registerResource: Registering a resource [%s] must be rooted in an absolute path (start with /) [%s]", - rccFilename.toLocal8Bit().data(), resourceRoot.toLocal8Bit().data()); + qWarning("QDir::registerResource: Registering a resource [%ls] must be rooted in an absolute path (start with /) [%ls]", + qUtf16Printable(rccFilename), qUtf16Printable(resourceRoot)); return false; } @@ -1385,8 +1385,8 @@ QResource::registerResource(const uchar *rccData, const QString &resourceRoot) { QString r = qt_resource_fixResourceRoot(resourceRoot); if(!r.isEmpty() && r[0] != QLatin1Char('/')) { - qWarning("QDir::registerResource: Registering a resource [%p] must be rooted in an absolute path (start with /) [%s]", - rccData, resourceRoot.toLocal8Bit().data()); + qWarning("QDir::registerResource: Registering a resource [%p] must be rooted in an absolute path (start with /) [%ls]", + rccData, qUtf16Printable(resourceRoot)); return false; }