diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-02-12 13:03:40 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-06 16:17:49 +0100 |
commit | 8408dc9e4dbb0302d523e893861b60473a33c91e (patch) | |
tree | 118bc7e5bb736b184396df01a23e7932783a1860 /include | |
parent | d62bf415f0ff3acb6bef1cfca36605cc12a6c6ca (diff) | |
download | qtlocation-mapboxgl-8408dc9e4dbb0302d523e893861b60473a33c91e.tar.gz |
use a reinterpret_cast to return the correct type
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/platform/log.hpp | 2 |
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: |