[core] prefer static_cast for casts to derived classes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user