diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-02 14:27:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-03 10:33:23 +0200 |
commit | 1e8f0940e6c6246e53550ac48eaae4f416e61777 (patch) | |
tree | 813a29491bf82b061cc574dc68b7a05f5764862a /svx/source/accessibility | |
parent | 602c6097850d6d659b760bdb0dd83baa906d416c (diff) |
loplugin:constmethod in svx
Change-Id: I6ae7c04479e3ea8ecd7535c33224a5e7095b64bb
Reviewed-on: https://gerrit.libreoffice.org/78396
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility')
5 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx index 208f65945155..68a0e40cff9f 100644 --- a/svx/source/accessibility/AccessibleTextHelper.cxx +++ b/svx/source/accessibility/AccessibleTextHelper.cxx @@ -100,7 +100,7 @@ namespace accessibility virtual ~AccessibleTextHelper_Impl() override; // XAccessibleContext child handling methods - sal_Int32 getAccessibleChildCount(); + sal_Int32 getAccessibleChildCount() const; uno::Reference< XAccessible > getAccessibleChild( sal_Int32 i ); // XAccessibleEventBroadcaster child related methods @@ -997,18 +997,18 @@ namespace accessibility @return number of changed paragraphs, -1 for "every paragraph changed" */ - sal_Int32 GetNumberOfParasChanged() { return mnParasChanged; } + sal_Int32 GetNumberOfParasChanged() const { return mnParasChanged; } /** Query index of last added/removed paragraph @return index of lastly added paragraphs, -1 for none added so far. */ - sal_Int32 GetParaIndex() { return mnParaIndex; } + sal_Int32 GetParaIndex() const { return mnParaIndex; } /** Query hint id of last interesting event @return hint id of last interesting event (REMOVED/INSERTED). */ - SfxHintId GetHintId() { return mnHintId; } + SfxHintId GetHintId() const { return mnHintId; } private: /** number of paragraphs changed during queue processing. -1 for @@ -1431,7 +1431,7 @@ namespace accessibility } // XAccessibleContext - sal_Int32 AccessibleTextHelper_Impl::getAccessibleChildCount() + sal_Int32 AccessibleTextHelper_Impl::getAccessibleChildCount() const { return mnLastVisibleChild - mnFirstVisibleChild + 1; } @@ -1698,7 +1698,7 @@ namespace accessibility } // XAccessibleContext - sal_Int32 AccessibleTextHelper::GetChildCount() + sal_Int32 AccessibleTextHelper::GetChildCount() const { SolarMutexGuard aGuard; diff --git a/svx/source/accessibility/ChildrenManager.cxx b/svx/source/accessibility/ChildrenManager.cxx index 7bc2e8f7725b..e92f7b2fdd68 100644 --- a/svx/source/accessibility/ChildrenManager.cxx +++ b/svx/source/accessibility/ChildrenManager.cxx @@ -100,7 +100,7 @@ void ChildrenManager::UpdateSelection() mpImpl->UpdateSelection (); } -bool ChildrenManager::HasFocus() +bool ChildrenManager::HasFocus() const { return mpImpl->HasFocus (); } diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index 2c0b953dc459..935c5bb2ea37 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -958,7 +958,7 @@ void ChildrenManagerImpl::UpdateSelection() } -bool ChildrenManagerImpl::HasFocus() +bool ChildrenManagerImpl::HasFocus() const { return mpFocusedShape != nullptr; } diff --git a/svx/source/accessibility/ChildrenManagerImpl.hxx b/svx/source/accessibility/ChildrenManagerImpl.hxx index f0abbfdff22c..4812bf9e4745 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.hxx +++ b/svx/source/accessibility/ChildrenManagerImpl.hxx @@ -225,7 +225,7 @@ public: Returns <true/> when there is a shape that has the focus and <false/> when there is no such shape. */ - bool HasFocus(); + bool HasFocus() const; /** When there is a shape that currently has the focus, i.e. <member>HasFocus()</member> returns <true/> then remove the diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx index 2b180cf9a8ae..ab0ecabbc109 100644 --- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx +++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx @@ -462,7 +462,7 @@ awt::Rectangle SvxPixelCtlAccessibleChild::implGetBounds() return AWTRectangle(maBoundingBox); } -OUString SvxPixelCtlAccessibleChild::GetName() +OUString SvxPixelCtlAccessibleChild::GetName() const { sal_Int32 nXIndex = mnIndexInParent % SvxPixelCtl::GetLineCount(); sal_Int32 nYIndex = mnIndexInParent / SvxPixelCtl::GetLineCount(); |