From 4dd35371329165941c0c4942c3cd312cbe3804e3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 25 Nov 2010 11:50:06 +0000 Subject: cppcheck: methods can be const --- .../source/accessibility/accessiblestatesethelper.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'unotools') diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx index d2f1e50960f6..f4705c5e25bc 100644 --- a/unotools/source/accessibility/accessiblestatesethelper.cxx +++ b/unotools/source/accessibility/accessiblestatesethelper.cxx @@ -50,11 +50,11 @@ public: AccessibleStateSetHelperImpl(const AccessibleStateSetHelperImpl& rImpl); ~AccessibleStateSetHelperImpl(); - sal_Bool IsEmpty () + sal_Bool IsEmpty () const throw (uno::RuntimeException); - sal_Bool Contains (sal_Int16 aState) + sal_Bool Contains (sal_Int16 aState) const throw (uno::RuntimeException); - uno::Sequence GetStates() + uno::Sequence GetStates() const throw (uno::RuntimeException); void AddState(sal_Int16 aState) throw (uno::RuntimeException); @@ -62,7 +62,7 @@ public: throw (uno::RuntimeException); sal_Bool Compare(const AccessibleStateSetHelperImpl* pComparativeValue, AccessibleStateSetHelperImpl* pOldStates, - AccessibleStateSetHelperImpl* pNewStates) + AccessibleStateSetHelperImpl* pNewStates) const throw (uno::RuntimeException); inline void AddStates( const sal_Int64 _nStates ) SAL_THROW( ( ) ); @@ -85,13 +85,13 @@ AccessibleStateSetHelperImpl::~AccessibleStateSetHelperImpl() { } -inline sal_Bool AccessibleStateSetHelperImpl::IsEmpty () +inline sal_Bool AccessibleStateSetHelperImpl::IsEmpty () const throw (uno::RuntimeException) { return maStates == 0; } -inline sal_Bool AccessibleStateSetHelperImpl::Contains (sal_Int16 aState) +inline sal_Bool AccessibleStateSetHelperImpl::Contains (sal_Int16 aState) const throw (uno::RuntimeException) { DBG_ASSERT(aState < BITFIELDSIZE, "the statesset is too small"); @@ -100,7 +100,7 @@ inline sal_Bool AccessibleStateSetHelperImpl::Contains (sal_Int16 aState) return ((aTempBitSet & maStates) != 0); } -inline uno::Sequence AccessibleStateSetHelperImpl::GetStates() +inline uno::Sequence AccessibleStateSetHelperImpl::GetStates() const throw (uno::RuntimeException) { uno::Sequence aRet(BITFIELDSIZE); @@ -144,7 +144,7 @@ inline void AccessibleStateSetHelperImpl::RemoveState(sal_Int16 aState) inline sal_Bool AccessibleStateSetHelperImpl::Compare( const AccessibleStateSetHelperImpl* pComparativeValue, AccessibleStateSetHelperImpl* pOldStates, - AccessibleStateSetHelperImpl* pNewStates) + AccessibleStateSetHelperImpl* pNewStates) const throw (uno::RuntimeException) { sal_Bool bResult(sal_False); -- cgit v1.2.3