basegfx/source/inc/hommatrixtemplate.hxx | 4 ++-- basegfx/source/vector/b2dvector.cxx | 2 +- include/basegfx/color/bcolor.hxx | 2 +- include/basegfx/point/b2dpoint.hxx | 2 +- include/basegfx/point/b3dpoint.hxx | 2 +- include/basegfx/vector/b3dvector.hxx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)
New commits: commit 8e58d9d08caecc868b1f4fed78101c7bdb0834ab Author: Noel Grandin <n...@peralex.com> Date: Thu Sep 18 14:43:52 2014 +0200 loplugin: cstylecast Change-Id: I8b1f0f6c100b4cf6d45c9e0c0f1e0a38ec081218 diff --git a/basegfx/source/inc/hommatrixtemplate.hxx b/basegfx/source/inc/hommatrixtemplate.hxx index 93c14f2..2e1be87 100644 --- a/basegfx/source/inc/hommatrixtemplate.hxx +++ b/basegfx/source/inc/hommatrixtemplate.hxx @@ -100,8 +100,8 @@ namespace basegfx } // reset last line, it equals default - delete ((ImplHomMatrixTemplate< RowSize >*)this)->mpLine; - ((ImplHomMatrixTemplate< RowSize >*)this)->mpLine = 0L; + delete const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine; + const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine = 0L; return true; } diff --git a/basegfx/source/vector/b2dvector.cxx b/basegfx/source/vector/b2dvector.cxx index ace0a0a..2a08fab 100644 --- a/basegfx/source/vector/b2dvector.cxx +++ b/basegfx/source/vector/b2dvector.cxx @@ -80,7 +80,7 @@ namespace basegfx const B2DVector& B2DVector::getEmptyVector() { - return (const B2DVector&) B2DTuple::getEmptyTuple(); + return static_cast<const B2DVector&>( B2DTuple::getEmptyTuple() ); } B2DVector& B2DVector::operator*=( const B2DHomMatrix& rMat ) diff --git a/include/basegfx/color/bcolor.hxx b/include/basegfx/color/bcolor.hxx index 457409b..2428b19 100644 --- a/include/basegfx/color/bcolor.hxx +++ b/include/basegfx/color/bcolor.hxx @@ -208,7 +208,7 @@ namespace basegfx static const BColor& getEmptyBColor() { - return (const BColor&) ::basegfx::B3DTuple::getEmptyTuple(); + return static_cast<const BColor&>( ::basegfx::B3DTuple::getEmptyTuple() ); } com::sun::star::uno::Sequence< double > colorToDoubleSequence(const com::sun::star::uno::Reference< com::sun::star::rendering::XGraphicDevice >& /*xGraphicDevice*/) const diff --git a/include/basegfx/point/b2dpoint.hxx b/include/basegfx/point/b2dpoint.hxx index cee2170..9c5e35a 100644 --- a/include/basegfx/point/b2dpoint.hxx +++ b/include/basegfx/point/b2dpoint.hxx @@ -124,7 +124,7 @@ namespace basegfx static const B2DPoint& getEmptyPoint() { - return (const B2DPoint&) ::basegfx::B2DTuple::getEmptyTuple(); + return static_cast<const B2DPoint&>( ::basegfx::B2DTuple::getEmptyTuple() ); } }; diff --git a/include/basegfx/point/b3dpoint.hxx b/include/basegfx/point/b3dpoint.hxx index bd45342..7484c7d 100644 --- a/include/basegfx/point/b3dpoint.hxx +++ b/include/basegfx/point/b3dpoint.hxx @@ -124,7 +124,7 @@ namespace basegfx static const B3DPoint& getEmptyPoint() { - return (const B3DPoint&) ::basegfx::B3DTuple::getEmptyTuple(); + return static_cast<const B3DPoint&>( ::basegfx::B3DTuple::getEmptyTuple() ); } }; diff --git a/include/basegfx/vector/b3dvector.hxx b/include/basegfx/vector/b3dvector.hxx index a3adbef..d7e5229 100644 --- a/include/basegfx/vector/b3dvector.hxx +++ b/include/basegfx/vector/b3dvector.hxx @@ -249,7 +249,7 @@ namespace basegfx static const B3DVector& getEmptyVector() { - return (const B3DVector&) ::basegfx::B3DTuple::getEmptyTuple(); + return static_cast<const B3DVector&>( ::basegfx::B3DTuple::getEmptyTuple() ); } }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits