summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-03 00:35:16 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-03 01:49:48 (GMT)
commitcc3bcb4a2efc192ecb8b6d3b44c39356d9fc4426 (patch)
treede772335f059641d5a966d3844f60720e572a91a
parentd032a563b9d875d79b35bf9da5cb4e7b31068386 (diff)
Use QStringLiteral with some paintlayer ids
-rw-r--r--src/lib/marble/StyleBuilder.cpp4
-rw-r--r--src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/marble/StyleBuilder.cpp b/src/lib/marble/StyleBuilder.cpp
index bd23c47..4e5bea9 100644
--- a/src/lib/marble/StyleBuilder.cpp
+++ b/src/lib/marble/StyleBuilder.cpp
@@ -1547,8 +1547,8 @@ QStringList StyleBuilder::renderOrder() const
paintLayerOrder << Private::createPaintLayerItem("Point", GeoDataFeature::HealthHospital);
paintLayerOrder << Private::createPaintLayerItem("Point", GeoDataFeature::MilitaryDangerArea);
- paintLayerOrder << "Polygon/Building/frame";
- paintLayerOrder << "Polygon/Building/roof";
+ paintLayerOrder << QStringLiteral("Polygon/Building/frame");
+ paintLayerOrder << QStringLiteral("Polygon/Building/roof");
Q_ASSERT(QSet<QString>::fromList(paintLayerOrder).size() == paintLayerOrder.size());
}
diff --git a/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp b/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp
index 054642e..0113ae1 100644
--- a/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp
+++ b/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp
@@ -42,8 +42,8 @@ GeoPolygonGraphicsItem::GeoPolygonGraphicsItem(const GeoDataFeature *feature, co
Q_ASSERT(m_buildingHeight > 0.0);
QStringList paintLayers;
- paintLayers << QString("Polygon/Building/frame");
- paintLayers << QString("Polygon/Building/roof");
+ paintLayers << QStringLiteral("Polygon/Building/frame")
+ << QStringLiteral("Polygon/Building/roof");
setPaintLayers(paintLayers);
}
else {
@@ -72,8 +72,8 @@ GeoPolygonGraphicsItem::GeoPolygonGraphicsItem(const GeoDataFeature *feature, co
Q_ASSERT(m_buildingHeight > 0.0);
QStringList paintLayers;
- paintLayers << QString("Polygon/Building/frame");
- paintLayers << QString("Polygon/Building/roof");
+ paintLayers << QStringLiteral("Polygon/Building/frame")
+ << QStringLiteral("Polygon/Building/roof");
setPaintLayers(paintLayers);
}
else {