summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-11 12:17:27 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-08-11 12:17:27 +0200
commitbe15af7e04d2d1b7ef0b1bbc36e6aaef14c5f36a (patch)
treeeadeaec6e620c7fe8afe5dc206b09b0838bc9316
parentbff4f4b334775138417a05536880ec71e439fd54 (diff)
downloadqtlocation-mapboxgl-be15af7e04d2d1b7ef0b1bbc36e6aaef14c5f36a.tar.gz
consolidate into one line
-rw-r--r--linux/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/main.cpp b/linux/main.cpp
index 392b9fb666..b1241d64e0 100644
--- a/linux/main.cpp
+++ b/linux/main.cpp
@@ -63,9 +63,7 @@ int main(int argc, char *argv[]) {
}
// Load style
- std::string style = "file://";
- style += uv::cwd();
- style += "/styles/bright/style.json";
+ const std::string style = std::string("file://") + uv::cwd() + std::string("/styles/bright/style.json");
map.setStyleURL(style);
int ret = view->run();