forked from qt-creator/qt-creator
Fix warning: "Mixing iterators with const_iterators"
[-Wclazy-strict-iterators] Change-Id: Ibc7e07a0f8390297589656c3c2ddfdd4c0151887 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1127,7 +1127,7 @@ bool Preprocessor::handleIdentifier(PPToken *tk)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_state.pushTokenBuffer(body.begin(), body.end(), macro);
|
m_state.pushTokenBuffer(body.constBegin(), body.constEnd(), macro);
|
||||||
|
|
||||||
if (m_client && !idTk.generated())
|
if (m_client && !idTk.generated())
|
||||||
m_client->stopExpandingMacro(idTk.byteOffset, *macro);
|
m_client->stopExpandingMacro(idTk.byteOffset, *macro);
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ void UpdateIncludeDependenciesVisitor::collectElementPaths(const ProjectExplorer
|
|||||||
|
|
||||||
qmt::MComponent *UpdateIncludeDependenciesVisitor::findComponentFromFilePath(const QString &filePath)
|
qmt::MComponent *UpdateIncludeDependenciesVisitor::findComponentFromFilePath(const QString &filePath)
|
||||||
{
|
{
|
||||||
const auto it = m_filePathComponentsMap.find(filePath);
|
const auto it = m_filePathComponentsMap.constFind(filePath);
|
||||||
if (it != m_filePathComponentsMap.cend())
|
if (it != m_filePathComponentsMap.cend())
|
||||||
return it.value();
|
return it.value();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user