Kaydet (Commit) 44790193 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:staticfunction

Change-Id: I982ba552579019e4902ae59fddf14a6b34ba5954
üst c4a9241f
...@@ -403,8 +403,8 @@ private: ...@@ -403,8 +403,8 @@ private:
#ifdef DBG_UTIL #ifdef DBG_UTIL
bool impl_debug_checkParameter( const OUString& sTopic, const OUString& sText, bool bbeforeProgress ); // addText, updateText static bool impl_debug_checkParameter( const OUString& sTopic, const OUString& sText, bool bbeforeProgress ); // addText, updateText
bool impl_debug_checkParameter( const OUString& rTopic, bool bbeforeProgress ); // removeText static bool impl_debug_checkParameter( const OUString& rTopic, bool bbeforeProgress ); // removeText
#endif #endif
......
...@@ -373,7 +373,7 @@ namespace ...@@ -373,7 +373,7 @@ namespace
damaged( basegfx::B2IBox( rDamagePoint, aEnd ) ); damaged( basegfx::B2IBox( rDamagePoint, aEnd ) );
} }
boost::shared_ptr<BitmapRenderer> getCompatibleBitmap( const BitmapDeviceSharedPtr& bmp ) const static boost::shared_ptr<BitmapRenderer> getCompatibleBitmap( const BitmapDeviceSharedPtr& bmp )
{ {
return boost::dynamic_pointer_cast< BitmapRenderer >( bmp ); return boost::dynamic_pointer_cast< BitmapRenderer >( bmp );
} }
...@@ -405,7 +405,7 @@ namespace ...@@ -405,7 +405,7 @@ namespace
return boost::dynamic_pointer_cast<mask_bitmap_type>( bmp ).get() != NULL; return boost::dynamic_pointer_cast<mask_bitmap_type>( bmp ).get() != NULL;
} }
boost::shared_ptr<alphamask_bitmap_type> getCompatibleAlphaMask( const BitmapDeviceSharedPtr& bmp ) const static boost::shared_ptr<alphamask_bitmap_type> getCompatibleAlphaMask( const BitmapDeviceSharedPtr& bmp )
{ {
return boost::dynamic_pointer_cast<alphamask_bitmap_type>( bmp ); return boost::dynamic_pointer_cast<alphamask_bitmap_type>( bmp );
} }
......
...@@ -141,7 +141,7 @@ namespace basegfx ...@@ -141,7 +141,7 @@ namespace basegfx
} }
} }
sal_uInt16 getEdgeLength() const { return RowSize; } static sal_uInt16 getEdgeLength() { return RowSize; }
double get(sal_uInt16 nRow, sal_uInt16 nColumn) const double get(sal_uInt16 nRow, sal_uInt16 nColumn) const
{ {
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
namespace basegfx namespace basegfx
{ {
class Impl2DHomMatrix : public ::basegfx::internal::ImplHomMatrixTemplate< 3 > typedef ::basegfx::internal::ImplHomMatrixTemplate< 3 > Impl2DHomMatrix_Base;
class Impl2DHomMatrix : public Impl2DHomMatrix_Base
{ {
}; };
...@@ -111,7 +112,7 @@ namespace basegfx ...@@ -111,7 +112,7 @@ namespace basegfx
bool B2DHomMatrix::invert() bool B2DHomMatrix::invert()
{ {
Impl2DHomMatrix aWork(*mpImpl); Impl2DHomMatrix aWork(*mpImpl);
sal_uInt16* pIndex = new sal_uInt16[mpImpl->getEdgeLength()]; sal_uInt16* pIndex = new sal_uInt16[Impl2DHomMatrix_Base::getEdgeLength()];
sal_Int16 nParity; sal_Int16 nParity;
if(aWork.ludcmp(pIndex, nParity)) if(aWork.ludcmp(pIndex, nParity))
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
namespace basegfx namespace basegfx
{ {
class Impl3DHomMatrix : public ::basegfx::internal::ImplHomMatrixTemplate< 4 > typedef ::basegfx::internal::ImplHomMatrixTemplate< 4 >Impl3DHomMatrix_Base;
class Impl3DHomMatrix : public Impl3DHomMatrix_Base
{ {
}; };
...@@ -82,7 +83,7 @@ namespace basegfx ...@@ -82,7 +83,7 @@ namespace basegfx
bool B3DHomMatrix::invert() bool B3DHomMatrix::invert()
{ {
Impl3DHomMatrix aWork(*mpImpl); Impl3DHomMatrix aWork(*mpImpl);
sal_uInt16* pIndex = new sal_uInt16[mpImpl->getEdgeLength()]; sal_uInt16* pIndex = new sal_uInt16[Impl3DHomMatrix_Base::getEdgeLength()];
sal_Int16 nParity; sal_Int16 nParity;
if(aWork.ludcmp(pIndex, nParity)) if(aWork.ludcmp(pIndex, nParity))
......
...@@ -137,7 +137,7 @@ namespace basegfx ...@@ -137,7 +137,7 @@ namespace basegfx
} }
} }
bool impLeftOfEdges(const B2DVector& rVecA, const B2DVector& rVecB, const B2DVector& rTest) static bool impLeftOfEdges(const B2DVector& rVecA, const B2DVector& rVecB, const B2DVector& rTest)
{ {
// tests if rTest is left of both directed line segments along the line -rVecA, rVecB. Test is // tests if rTest is left of both directed line segments along the line -rVecA, rVecB. Test is
// with border. // with border.
......
...@@ -484,7 +484,7 @@ namespace basegfx ...@@ -484,7 +484,7 @@ namespace basegfx
} }
/// True when sweep line hits our own active edge /// True when sweep line hits our own active edge
bool metOwnEdge(const SweepLineEvent& rEvent, static bool metOwnEdge(const SweepLineEvent& rEvent,
ActiveEdge& rActiveEdge) ActiveEdge& rActiveEdge)
{ {
const bool bHitOwnEdge=&rEvent.getRect() == &rActiveEdge.getRect(); const bool bHitOwnEdge=&rEvent.getRect() == &rActiveEdge.getRect();
......
...@@ -208,9 +208,9 @@ public: ...@@ -208,9 +208,9 @@ public:
typename SetterFunctor::result_type setter( static typename SetterFunctor::result_type setter(
typename SetterFunctor::first_argument_type v1, typename SetterFunctor::first_argument_type v1,
argument_type v2 ) const argument_type v2 )
{ {
return maSetterFunctor(v1,v2); return maSetterFunctor(v1,v2);
} }
...@@ -343,10 +343,10 @@ public: ...@@ -343,10 +343,10 @@ public:
typename Functor::result_type setter( static typename Functor::result_type setter(
typename Functor::first_argument_type v1, typename Functor::first_argument_type v1,
typename Functor::second_argument_type v2, typename Functor::second_argument_type v2,
argument_type v3 ) const argument_type v3 )
{ {
return maSetterFunctor(v1,v2,v3); return maSetterFunctor(v1,v2,v3);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment