aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libs/cplusplus/pp-engine.cpp2
-rw-r--r--src/plugins/modeleditor/componentviewcontroller.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp
index 5ee8298a724..6ed0bff9ac1 100644
--- a/src/libs/cplusplus/pp-engine.cpp
+++ b/src/libs/cplusplus/pp-engine.cpp
@@ -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())
m_client->stopExpandingMacro(idTk.byteOffset, *macro);
diff --git a/src/plugins/modeleditor/componentviewcontroller.cpp b/src/plugins/modeleditor/componentviewcontroller.cpp
index 9c578cc29bf..828b2616565 100644
--- a/src/plugins/modeleditor/componentviewcontroller.cpp
+++ b/src/plugins/modeleditor/componentviewcontroller.cpp
@@ -248,7 +248,7 @@ void UpdateIncludeDependenciesVisitor::collectElementPaths(const ProjectExplorer
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())
return it.value();