[core] prefer static_cast for casts to derived classes

This commit is contained in:
Konstantin Käfer
2019-03-20 15:55:39 +01:00
parent be3b5917c1
commit 394e2aa717
8 changed files with 10 additions and 10 deletions

View File

@@ -64,7 +64,7 @@ bool RenderFillLayer::hasCrossfade() const {
void RenderFillLayer::render(PaintParameters& parameters, RenderSource*) {
// TODO: remove cast
gl::Context& glContext = reinterpret_cast<gl::Context&>(parameters.context);
gl::Context& glContext = static_cast<gl::Context&>(parameters.context);
if (unevaluated.get<FillPattern>().isUndefined()) {
for (const RenderTile& tile : renderTiles) {