diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-11-16 10:53:54 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-11-28 14:49:44 +0100 |
commit | a0b8f01c1baf640f34c0f46ba22efd399b7a0012 (patch) | |
tree | 96d9cb1b5f0daaf21b2dad3d880a1dcf15dde37e /bin | |
parent | 46edc91656a4468ff05f2a7b33c5fb036ab449d6 (diff) | |
download | qtlocation-mapboxgl-a0b8f01c1baf640f34c0f46ba22efd399b7a0012.tar.gz |
[build] use newer compiler versions for some builds
Diffstat (limited to 'bin')
-rw-r--r-- | bin/offline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/offline.cpp b/bin/offline.cpp index 0d0fe57281..398f8427ee 100644 --- a/bin/offline.cpp +++ b/bin/offline.cpp @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) { std::string json = readFile(geometryValue.Get()); auto geometry = parseGeometry(json); return OfflineRegionDefinition{ OfflineGeometryRegionDefinition(style, geometry, minZoom, maxZoom, pixelRatio) }; - } catch(std::runtime_error e) { + } catch(const std::runtime_error& e) { std::cerr << "Could not parse geojson file " << geometryValue.Get() << ": " << e.what() << std::endl; exit(1); } |