summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-07 15:06:09 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-07 15:06:09 (GMT)
commit3099e6122fa4539bcc2d07790c6021493754e726 (patch)
treef98b1252543d66c14700f47e2042646ed3322214
parent5a62ac9d5cc2c89d89526564ff83f7cbef5719b9 (diff)
Use -DQT_STRICT_ITERATORS
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/plugins/runner/osm/translators/O5mWriter.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1ce5a96..ceb61d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -224,6 +224,7 @@ add_definitions(
-DQT_USE_FAST_OPERATOR_PLUS
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
-DQT_NO_URL_CAST_FROM_STRING
+ -DQT_STRICT_ITERATORS
)
####################################################
diff --git a/src/plugins/runner/osm/translators/O5mWriter.cpp b/src/plugins/runner/osm/translators/O5mWriter.cpp
index 863f64b..8cdb999 100644
--- a/src/plugins/runner/osm/translators/O5mWriter.cpp
+++ b/src/plugins/runner/osm/translators/O5mWriter.cpp
@@ -237,7 +237,7 @@ void O5mWriter::writeTags(const OsmPlacemarkData &osmData, StringTable &stringTa
void O5mWriter::writeStringPair(const StringPair &pair, StringTable &stringTable, QDataStream &stream) const
{
- auto const iter = stringTable.find(pair);
+ auto const iter = stringTable.constFind(pair);
if (iter == stringTable.cend()) {
QByteArray data;
data.push_back(char(0x00));