forked from qt-creator/qt-creator
Utils: Purge asConst
Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
11336fb604
commit
7d3a79c696
@@ -28,7 +28,6 @@
|
||||
|
||||
#include <coreplugin/icontext.h>
|
||||
|
||||
#include <utils/asconst.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QDesignerOptionsPageInterface>
|
||||
@@ -121,7 +120,7 @@ bool SettingsPageProvider::matches(const QString &searchKeyWord) const
|
||||
for (size_t i = 0; i < itemCount; ++i)
|
||||
m_keywords << Utils::stripAccelerator(QCoreApplication::translate(uitext[i].context, uitext[i].value));
|
||||
}
|
||||
for (const QString &key : Utils::asConst(m_keywords)) {
|
||||
for (const QString &key : qAsConst(m_keywords)) {
|
||||
if (key.contains(searchKeyWord, Qt::CaseInsensitive))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user