diff options
-rw-r--r-- | drawinglayer/source/primitive2d/controlprimitive2d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/primitive2d/graphicprimitive2d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/primitive2d/mediaprimitive2d.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive2d/controlprimitive2d.cxx b/drawinglayer/source/primitive2d/controlprimitive2d.cxx index f03157c138a6..b764e02c21d1 100644 --- a/drawinglayer/source/primitive2d/controlprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/controlprimitive2d.cxx @@ -289,7 +289,7 @@ namespace drawinglayer // use base class compare operator if(BufferedDecompositionPrimitive2D::operator==(rPrimitive)) { - const ControlPrimitive2D& rCompare = (ControlPrimitive2D&)rPrimitive; + const ControlPrimitive2D& rCompare = static_cast<const ControlPrimitive2D&>(rPrimitive); if(getTransform() == rCompare.getTransform()) { diff --git a/drawinglayer/source/primitive2d/graphicprimitive2d.cxx b/drawinglayer/source/primitive2d/graphicprimitive2d.cxx index 552d2af07634..7374873c06ee 100644 --- a/drawinglayer/source/primitive2d/graphicprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/graphicprimitive2d.cxx @@ -210,7 +210,7 @@ namespace drawinglayer { if(BufferedDecompositionPrimitive2D::operator==(rPrimitive)) { - const GraphicPrimitive2D& rCompare = (GraphicPrimitive2D&)rPrimitive; + const GraphicPrimitive2D& rCompare = static_cast<const GraphicPrimitive2D&>(rPrimitive); return (getTransform() == rCompare.getTransform() && getGraphicObject() == rCompare.getGraphicObject() diff --git a/drawinglayer/source/primitive2d/mediaprimitive2d.cxx b/drawinglayer/source/primitive2d/mediaprimitive2d.cxx index e11d9b6c09d8..1140228ed582 100644 --- a/drawinglayer/source/primitive2d/mediaprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/mediaprimitive2d.cxx @@ -112,7 +112,7 @@ namespace drawinglayer { if(BufferedDecompositionPrimitive2D::operator==(rPrimitive)) { - const MediaPrimitive2D& rCompare = (MediaPrimitive2D&)rPrimitive; + const MediaPrimitive2D& rCompare = static_cast<const MediaPrimitive2D&>(rPrimitive); return (getTransform() == rCompare.getTransform() && getURL() == rCompare.getURL() |