Commit ab1107c4 authored by Eike Ziller's avatar Eike Ziller

ModelEditor: Fix another const vs non-const iterator mismatch

Change-Id: I9101b26d8c18ec73fe122ec334299202a76d24b4
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent cf72850c
......@@ -136,10 +136,10 @@ QStringList NameController::buildElementsPath(const QString &filePath, bool igno
QList<QString> relativeElements;
QStringList split = filePath.split("/");
QStringList::const_iterator splitEnd = split.end();
QStringList::const_iterator splitEnd = split.constEnd();
if (ignoreLastFilePathPart || split.last().isEmpty())
splitEnd = --splitEnd;
for (auto it = split.cbegin(); it != splitEnd; ++it) {
for (auto it = split.constBegin(); it != splitEnd; ++it) {
QString packageName = qmt::NameController::convertFileNameToElementName(*it);
relativeElements.append(packageName);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment