summaryrefslogtreecommitdiff
path: root/include/mbgl
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-19 12:12:47 +0200
commitb52e171b6737522fe5e7739646f523becd315381 (patch)
tree97a90ea3a772c5d79a64533052c8bed1bd7d6d64 /include/mbgl
parentf0b0167640fa6cbd852ec1bed237277ee7c5f06d (diff)
downloadqtlocation-mapboxgl-b52e171b6737522fe5e7739646f523becd315381.tar.gz
[core] add error for non-virtual destructor deletes + add virtual dtors
Diffstat (limited to 'include/mbgl')
-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;