summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-05-18 14:30:20 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-05-18 16:57:12 +0200
commiteae2c715f1ead523de2984cde8708627bfc3f180 (patch)
tree615be92eaa9a651343792b23c881f9afaa09512a /include/mbgl/map
parent5d7e54a815715458ee021ba4c4f5f3135876919b (diff)
downloadqtlocation-mapboxgl-eae2c715f1ead523de2984cde8708627bfc3f180.tar.gz
[core] add error for non-virtual destructor deletes + add virtual dtors
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map_observer.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/map/map_observer.hpp b/include/mbgl/map/map_observer.hpp
index 4fefb79121..f63e5f2af3 100644
--- a/include/mbgl/map/map_observer.hpp
+++ b/include/mbgl/map/map_observer.hpp
@@ -10,6 +10,8 @@ namespace mbgl {
class MapObserver {
public:
+ virtual ~MapObserver() = default;
+
static MapObserver& nullObserver() {
static MapObserver mapObserver;
return mapObserver;