coverity#1169830 Unchecked dynamic_cast
Change-Id: Ib4b77369d2fbe085c2eb6ad996df9db710990c3c
This commit is contained in:
parent
3b70067fcc
commit
cf7017c89e
@ -449,9 +449,8 @@ uno::Reference< drawing::XShape >
|
||||
|
||||
void OpenglShapeFactory::render(uno::Reference< drawing::XShapes > xRootShape)
|
||||
{
|
||||
dummy::DummyChart* pChart = dynamic_cast<dummy::DummyChart*>(xRootShape.get());
|
||||
assert(pChart);
|
||||
pChart->render();
|
||||
dummy::DummyChart& rChart = dynamic_cast<dummy::DummyChart&>(*xRootShape.get());
|
||||
rChart.render();
|
||||
}
|
||||
|
||||
bool OpenglShapeFactory::preRender(OpenGLWindow* pWindow)
|
||||
|
Loading…
x
Reference in New Issue
Block a user