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