aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perforce
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r--src/plugins/perforce/perforcesubmiteditor.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/perforce/perforcesubmiteditor.cpp b/src/plugins/perforce/perforcesubmiteditor.cpp
index 38b1a04f1ac..29b72462b0e 100644
--- a/src/plugins/perforce/perforcesubmiteditor.cpp
+++ b/src/plugins/perforce/perforcesubmiteditor.cpp
@@ -54,11 +54,8 @@ QByteArray PerforceSubmitEditor::fileContents() const
const_cast<PerforceSubmitEditor*>(this)->updateEntries();
QString text;
QTextStream out(&text);
- QMapIterator<QString, QString> it(m_entries);
- while (it.hasNext()) {
- it.next();
+ for (auto it = m_entries.cbegin(), end = m_entries.cend(); it != end; ++it)
out << it.key() << ":" << it.value();
- }
return text.toLocal8Bit();
}