From 5cb9af3d8df0e38a150b68e2de8716f95aa9bffa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 Dec 2023 11:05:17 +0530 Subject: [PATCH] Fix deprecation warning --- src/calibre/utils/rcc/rcc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/rcc/rcc.cpp b/src/calibre/utils/rcc/rcc.cpp index bcace8dcdf..9be3b22226 100644 --- a/src/calibre/utils/rcc/rcc.cpp +++ b/src/calibre/utils/rcc/rcc.cpp @@ -41,6 +41,7 @@ #include #include +#include // Note: A copy of this file is used in Qt Designer (qttools/src/designer/src/lib/shared/rcc.cpp) @@ -693,7 +694,7 @@ bool RCCResourceLibrary::addFile(const QString &alias, const RCCFileInfo &file) for (auto it = cbegin; it != cend; ++it) { if (it.key() == filename && it.value()->m_language == s->m_language && it.value()->m_territory == s->m_territory) { - for (const QString &name : qAsConst(m_fileNames)) { + for (const QString &name : std::as_const(m_fileNames)) { qWarning("%s: Warning: potential duplicate alias detected: '%s'", qPrintable(name), qPrintable(filename)); }