summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-08-14 10:53:18 (GMT)
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-08-14 10:53:18 (GMT)
commit2c8f7e90ef215b85fdd70f868419a69cc5c14cc7 (patch)
tree732ef5cf83c4f0ae99679f85b3e3770a3f4f743f
parent21e3f103ca388e7925ea42500e386e6d6f32fbe4 (diff)
no need to compute category twice
-rw-r--r--src/lib/marble/osm/OsmPresetLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/marble/osm/OsmPresetLibrary.cpp b/src/lib/marble/osm/OsmPresetLibrary.cpp
index f570584..eb4858b 100644
--- a/src/lib/marble/osm/OsmPresetLibrary.cpp
+++ b/src/lib/marble/osm/OsmPresetLibrary.cpp
@@ -584,7 +584,7 @@ GeoDataFeature::GeoDataVisualCategory OsmPresetLibrary::determineVisualCategory(
QString const keyValue = QString("%1=%2").arg(iter.key()).arg(iter.value());
GeoDataFeature::GeoDataVisualCategory category = osmVisualCategory(keyValue);
if (category != GeoDataFeature::None) {
- return osmVisualCategory(keyValue);
+ return category;
}
}