diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-29 13:35:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-01 13:08:42 +0200 |
commit | f56a5b9029006c27532279da91366d34d26cde54 (patch) | |
tree | 1597dfe57d328fbdd18fe2603d12a0d0d795d08f /drawinglayer | |
parent | fa537124ac2ead40c4cba7f4ce298a1982db7d84 (diff) |
loplugin: cstylecast
Change-Id: I44408c89d00064ae00e4e0ae154ba79c35e56c7f
Diffstat (limited to 'drawinglayer')
-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() |