loplugin: cstylecast

Change-Id: I44408c89d00064ae00e4e0ae154ba79c35e56c7f
This commit is contained in:
Noel Grandin
2014-09-29 13:35:29 +02:00
parent fa537124ac
commit f56a5b9029
3 changed files with 3 additions and 3 deletions

View File

@@ -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())
{

View File

@@ -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()

View File

@@ -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()