diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-21 17:10:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-21 19:47:42 +0200 |
commit | 8fe53ec9f54ed9842b3b7dad566ccabecef39f70 (patch) | |
tree | a757bd575a2a30f3e94e130b96ac63bfe5688cad | |
parent | 89dd08d15fbe57e3fbeac9a7a9906efd42788c74 (diff) |
loplugin:constmethod in accessibility
Change-Id: I1e42811e8e79dd81837dd38570c0f2705bb87fe8
Reviewed-on: https://gerrit.libreoffice.org/77924
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
17 files changed, 23 insertions, 23 deletions
diff --git a/accessibility/inc/extended/accessibleiconchoicectrl.hxx b/accessibility/inc/extended/accessibleiconchoicectrl.hxx index 823bbb6c723d..63ab66a9621c 100644 --- a/accessibility/inc/extended/accessibleiconchoicectrl.hxx +++ b/accessibility/inc/extended/accessibleiconchoicectrl.hxx @@ -50,7 +50,7 @@ namespace accessibility virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; - VclPtr< SvtIconChoiceCtrl > getCtrl(); + VclPtr< SvtIconChoiceCtrl > getCtrl() const; public: /** OAccessibleBase needs a valid view diff --git a/accessibility/inc/extended/accessiblelistbox.hxx b/accessibility/inc/extended/accessiblelistbox.hxx index c38f47741896..cb075f299bb6 100644 --- a/accessibility/inc/extended/accessiblelistbox.hxx +++ b/accessibility/inc/extended/accessiblelistbox.hxx @@ -63,7 +63,7 @@ namespace accessibility void RemoveChildEntries(SvTreeListEntry*); - sal_Int32 GetRoleType(); + sal_Int32 GetRoleType() const; public: /** OAccessibleBase needs a valid view diff --git a/accessibility/inc/extended/accessiblelistboxentry.hxx b/accessibility/inc/extended/accessiblelistboxentry.hxx index f70689a271fd..d52faf379f69 100644 --- a/accessibility/inc/extended/accessiblelistboxentry.hxx +++ b/accessibility/inc/extended/accessiblelistboxentry.hxx @@ -211,7 +211,7 @@ namespace accessibility css::uno::Reference< css::accessibility::XAccessible > implGetParentAccessible( ) const; SvTreeListEntry* GetRealChild(sal_Int32 nIndex); - sal_Int32 GetRoleType(); + sal_Int32 GetRoleType() const; }; diff --git a/accessibility/inc/extended/accessibletabbarpage.hxx b/accessibility/inc/extended/accessibletabbarpage.hxx index 3cc02ee323f7..913b34484c50 100644 --- a/accessibility/inc/extended/accessibletabbarpage.hxx +++ b/accessibility/inc/extended/accessibletabbarpage.hxx @@ -57,8 +57,8 @@ namespace accessibility css::uno::Reference< css::accessibility::XAccessible > m_xParent; bool IsEnabled(); - bool IsShowing(); - bool IsSelected(); + bool IsShowing() const; + bool IsSelected() const; void SetShowing( bool bShowing ); void SetSelected( bool bSelected ); diff --git a/accessibility/inc/extended/textwindowaccessibility.hxx b/accessibility/inc/extended/textwindowaccessibility.hxx index 422b5924c7b1..320139ac35c7 100644 --- a/accessibility/inc/extended/textwindowaccessibility.hxx +++ b/accessibility/inc/extended/textwindowaccessibility.hxx @@ -329,7 +329,7 @@ public: ::TextView & rView); const css::uno::Reference< css::accessibility::XAccessible >& - getAccessible() { return m_xAccessible; } + getAccessible() const { return m_xAccessible; } // Must be called only after init has been called. css::lang::Locale retrieveLocale(); diff --git a/accessibility/inc/standard/accessiblemenubasecomponent.hxx b/accessibility/inc/standard/accessiblemenubasecomponent.hxx index a6c9da485f30..73dcc8fe5731 100644 --- a/accessibility/inc/standard/accessiblemenubasecomponent.hxx +++ b/accessibility/inc/standard/accessiblemenubasecomponent.hxx @@ -84,7 +84,7 @@ protected: void UpdateAccessibleName( sal_Int32 i ); void UpdateItemText( sal_Int32 i ); - sal_Int32 GetChildCount(); + sal_Int32 GetChildCount() const; css::uno::Reference< css::accessibility::XAccessible > GetChild( sal_Int32 i ); css::uno::Reference< css::accessibility::XAccessible > GetChildAt( const css::awt::Point& rPoint ); diff --git a/accessibility/inc/standard/vclxaccessiblecheckbox.hxx b/accessibility/inc/standard/vclxaccessiblecheckbox.hxx index 5c4e21e18898..3862168fa020 100644 --- a/accessibility/inc/standard/vclxaccessiblecheckbox.hxx +++ b/accessibility/inc/standard/vclxaccessiblecheckbox.hxx @@ -46,8 +46,8 @@ private: sal_Int32 implGetMaximumValue(); - bool IsChecked(); - bool IsIndeterminate(); + bool IsChecked() const; + bool IsIndeterminate() const; void SetChecked( bool bChecked ); void SetIndeterminate( bool bIndeterminate ); diff --git a/accessibility/inc/standard/vclxaccessiblelist.hxx b/accessibility/inc/standard/vclxaccessiblelist.hxx index d869f865fbc0..f647546dc911 100644 --- a/accessibility/inc/standard/vclxaccessiblelist.hxx +++ b/accessibility/inc/standard/vclxaccessiblelist.hxx @@ -120,7 +120,7 @@ public: virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) override; virtual css::awt::Point SAL_CALL getLocationOnScreen( ) override; - bool IsInDropDown(); + bool IsInDropDown() const; void HandleDropOpen(); void ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent, bool b_IsDropDownList); void UpdateSelection_Acc (const OUString& sTextOfSelectedItem, bool b_IsDropDownList); diff --git a/accessibility/inc/standard/vclxaccessibletabpage.hxx b/accessibility/inc/standard/vclxaccessibletabpage.hxx index 9d64e665827a..5cbfb2516d7c 100644 --- a/accessibility/inc/standard/vclxaccessibletabpage.hxx +++ b/accessibility/inc/standard/vclxaccessibletabpage.hxx @@ -57,8 +57,8 @@ private: sal_Int32 implGetAccessibleChildCount(); - bool IsFocused(); - bool IsSelected(); + bool IsFocused() const; + bool IsSelected() const; void SetFocused( bool bFocused ); void SetSelected( bool bSelected ); diff --git a/accessibility/source/extended/accessibleiconchoicectrl.cxx b/accessibility/source/extended/accessibleiconchoicectrl.cxx index 31e4aa92fe0f..ba0ec3c1e645 100644 --- a/accessibility/source/extended/accessibleiconchoicectrl.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrl.cxx @@ -328,7 +328,7 @@ namespace accessibility } } - VclPtr< SvtIconChoiceCtrl > AccessibleIconChoiceCtrl::getCtrl() + VclPtr< SvtIconChoiceCtrl > AccessibleIconChoiceCtrl::getCtrl() const { return GetAs<SvtIconChoiceCtrl >(); } diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 23ae9a77af04..28b6dac86621 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -361,7 +361,7 @@ namespace accessibility return m_xParent; } - sal_Int32 AccessibleListBox::GetRoleType() + sal_Int32 AccessibleListBox::GetRoleType() const { sal_Int32 nCase = 0; SvTreeListEntry* pEntry = getListBox()->GetEntry(0); diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index a39fbc9d2b15..1a4bbb02dd5b 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -360,7 +360,7 @@ namespace accessibility return m_aEntryPath.empty() ? -1 : m_aEntryPath.back(); } - sal_Int32 AccessibleListBoxEntry::GetRoleType() + sal_Int32 AccessibleListBoxEntry::GetRoleType() const { sal_Int32 nCase = 0; SvTreeListEntry* pEntry = getListBox()->GetEntry(0); diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx index f5544167c8f5..581ee98cde76 100644 --- a/accessibility/source/extended/accessibletabbarpage.cxx +++ b/accessibility/source/extended/accessibletabbarpage.cxx @@ -71,7 +71,7 @@ namespace accessibility } - bool AccessibleTabBarPage::IsShowing() + bool AccessibleTabBarPage::IsShowing() const { bool bShowing = false; @@ -82,7 +82,7 @@ namespace accessibility } - bool AccessibleTabBarPage::IsSelected() + bool AccessibleTabBarPage::IsSelected() const { bool bSelected = false; diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx index fc1d5764f77d..67d8a463c084 100644 --- a/accessibility/source/standard/accessiblemenubasecomponent.cxx +++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx @@ -301,7 +301,7 @@ void OAccessibleMenuBaseComponent::UpdateItemText( sal_Int32 i ) } -sal_Int32 OAccessibleMenuBaseComponent::GetChildCount() +sal_Int32 OAccessibleMenuBaseComponent::GetChildCount() const { return m_aAccessibleChildren.size(); } diff --git a/accessibility/source/standard/vclxaccessiblecheckbox.cxx b/accessibility/source/standard/vclxaccessiblecheckbox.cxx index 56e9fecaf399..84af25d9152f 100644 --- a/accessibility/source/standard/vclxaccessiblecheckbox.cxx +++ b/accessibility/source/standard/vclxaccessiblecheckbox.cxx @@ -54,7 +54,7 @@ VCLXAccessibleCheckBox::VCLXAccessibleCheckBox( VCLXWindow* pVCLWindow ) } -bool VCLXAccessibleCheckBox::IsChecked() +bool VCLXAccessibleCheckBox::IsChecked() const { bool bChecked = false; @@ -66,7 +66,7 @@ bool VCLXAccessibleCheckBox::IsChecked() } -bool VCLXAccessibleCheckBox::IsIndeterminate() +bool VCLXAccessibleCheckBox::IsIndeterminate() const { bool bIndeterminate = false; diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index af8d83ce9fe4..313e4b416436 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -918,7 +918,7 @@ awt::Point VCLXAccessibleList::getLocationOnScreen( ) } -bool VCLXAccessibleList::IsInDropDown() +bool VCLXAccessibleList::IsInDropDown() const { return m_pListBoxHelper->IsInDropDown(); } diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx index 5bdd7edfc76e..429bf952138f 100644 --- a/accessibility/source/standard/vclxaccessibletabpage.cxx +++ b/accessibility/source/standard/vclxaccessibletabpage.cxx @@ -63,7 +63,7 @@ VCLXAccessibleTabPage::~VCLXAccessibleTabPage() } -bool VCLXAccessibleTabPage::IsFocused() +bool VCLXAccessibleTabPage::IsFocused() const { bool bFocused = false; @@ -74,7 +74,7 @@ bool VCLXAccessibleTabPage::IsFocused() } -bool VCLXAccessibleTabPage::IsSelected() +bool VCLXAccessibleTabPage::IsSelected() const { bool bSelected = false; |