summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-02-12 13:03:40 -0800
committerKonstantin Käfer <mail@kkaefer.com>2015-03-06 16:17:49 +0100
commit8408dc9e4dbb0302d523e893861b60473a33c91e (patch)
tree118bc7e5bb736b184396df01a23e7932783a1860 /include
parentd62bf415f0ff3acb6bef1cfca36605cc12a6c6ca (diff)
downloadqtlocation-mapboxgl-8408dc9e4dbb0302d523e893861b60473a33c91e.tar.gz
use a reinterpret_cast to return the correct type
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/platform/log.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/platform/log.hpp b/include/mbgl/platform/log.hpp
index b95895fd10..8b58921bbe 100644
--- a/include/mbgl/platform/log.hpp
+++ b/include/mbgl/platform/log.hpp
@@ -61,7 +61,7 @@ public:
template<typename T, typename ...Args>
static inline const T &Set(Args&& ...args) {
Backend = util::make_unique<T>(::std::forward<Args>(args)...);
- return *dynamic_cast<T *>(Backend.get());
+ return *reinterpret_cast<T *>(Backend.get());
}
private: