summaryrefslogtreecommitdiff
path: root/platform/default/mbgl/storage/offline_download.cpp
diff options
context:
space:
mode:
authorZsolt Bölöny <bolony.zsolt@gmail.com>2018-06-24 14:34:26 +0200
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-06-25 10:07:04 -0700
commitbc6094eb5539971a7cf7e48c90996a52c89c5815 (patch)
tree6b90d7445981844591d2580dd25d9f7f656a33fa /platform/default/mbgl/storage/offline_download.cpp
parent279dd93f7cbd57adce60a97bdb760905e30f4580 (diff)
downloadqtlocation-mapboxgl-bc6094eb5539971a7cf7e48c90996a52c89c5815.tar.gz
[core] Fix GCC8's new -Wcatch-value warnings
Polymorphic types shouldn't be caught by value, as the warning message says. Catch them by constant reference instead.
Diffstat (limited to 'platform/default/mbgl/storage/offline_download.cpp')
-rw-r--r--platform/default/mbgl/storage/offline_download.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/mbgl/storage/offline_download.cpp b/platform/default/mbgl/storage/offline_download.cpp
index 1bd29f031c..4da51db655 100644
--- a/platform/default/mbgl/storage/offline_download.cpp
+++ b/platform/default/mbgl/storage/offline_download.cpp
@@ -355,7 +355,7 @@ void OfflineDownload::ensureResource(const Resource& resource,
if (buffer.size() == 64 || resourcesRemaining.size() == 0) {
try {
offlineDatabase.putRegionResources(id, buffer, status);
- } catch (MapboxTileLimitExceededException) {
+ } catch (const MapboxTileLimitExceededException&) {
onMapboxTileCountLimitExceeded();
return;
}