mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix deprecation warning
This commit is contained in:
parent
7a59b2010d
commit
5cb9af3d8d
@ -41,6 +41,7 @@
|
|||||||
#include <qxmlstream.h>
|
#include <qxmlstream.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
// Note: A copy of this file is used in Qt Designer (qttools/src/designer/src/lib/shared/rcc.cpp)
|
// 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) {
|
for (auto it = cbegin; it != cend; ++it) {
|
||||||
if (it.key() == filename && it.value()->m_language == s->m_language &&
|
if (it.key() == filename && it.value()->m_language == s->m_language &&
|
||||||
it.value()->m_territory == s->m_territory) {
|
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'",
|
qWarning("%s: Warning: potential duplicate alias detected: '%s'",
|
||||||
qPrintable(name), qPrintable(filename));
|
qPrintable(name), qPrintable(filename));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user