summaryrefslogtreecommitdiff
path: root/src/mbgl/util/offscreen_texture.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-20 15:55:39 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-04-05 11:49:17 +0200
commit394e2aa7171943b7b0be77be7b19bc4a97c36905 (patch)
treee90ac54cc8e8b3c4d476cd6b19cf0f39f446dc8b /src/mbgl/util/offscreen_texture.cpp
parentbe3b5917c169a6d5e6fcdc3cca15ca78e44dfd1d (diff)
downloadqtlocation-mapboxgl-394e2aa7171943b7b0be77be7b19bc4a97c36905.tar.gz
[core] prefer static_cast for casts to derived classes
Diffstat (limited to 'src/mbgl/util/offscreen_texture.cpp')
-rw-r--r--src/mbgl/util/offscreen_texture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/offscreen_texture.cpp b/src/mbgl/util/offscreen_texture.cpp
index d7d5c55564..9fa1dcd90e 100644
--- a/src/mbgl/util/offscreen_texture.cpp
+++ b/src/mbgl/util/offscreen_texture.cpp
@@ -66,7 +66,7 @@ OffscreenTexture::OffscreenTexture(gfx::Context& context,
const Size size,
const gfx::TextureChannelDataType type)
// TODO: remove cast
- : impl(std::make_unique<Impl>(reinterpret_cast<gl::Context&>(context), std::move(size), type)) {
+ : impl(std::make_unique<Impl>(static_cast<gl::Context&>(context), std::move(size), type)) {
assert(!size.isEmpty());
}
@@ -75,7 +75,7 @@ OffscreenTexture::OffscreenTexture(gfx::Context& context,
gfx::Renderbuffer<gfx::RenderbufferPixelType::Depth>& renderbuffer,
const gfx::TextureChannelDataType type)
// TODO: remove cast
- : impl(std::make_unique<Impl>(reinterpret_cast<gl::Context&>(context), std::move(size), renderbuffer, type)) {
+ : impl(std::make_unique<Impl>(static_cast<gl::Context&>(context), std::move(size), renderbuffer, type)) {
assert(!size.isEmpty());
}