aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2019-01-16 12:40:15 +0100
committerAlessandro Portale <[email protected]>2019-01-16 17:15:19 +0000
commit7f641d3c08b91675b6475c8dee968b072bc3a881 (patch)
tree29293bb68013b94b1aa9379b9ba9ba1a7828a1fe /src
parenta929ffd066133db15b522bc22e0c0d0c5f5d33ec (diff)
Fix warning: "Mixing iterators with const_iterators"
[-Wclazy-strict-iterators] Change-Id: Ibc7e07a0f8390297589656c3c2ddfdd4c0151887 Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src')
-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();