From 9ba4b01ba57d059a04038823a1f0cf3bb2cb383c Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Wed, 23 Aug 2023 16:40:53 +0200 Subject: a11y: Make AccessibleBrowseBoxBase's client ID private The getter and setter are only used by the class itself, not by any derived classes, and the client ID is an implementation detail, so make the methods private instead of protected. Change-Id: I380aa9848ae515b7b4ae1a727b3c5720b53250fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156010 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- accessibility/inc/extended/AccessibleBrowseBoxBase.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accessibility') diff --git a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx index ef199ee2da5c..d4ea1aabc07f 100644 --- a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx +++ b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx @@ -270,9 +270,6 @@ protected: */ AbsoluteScreenPixelRectangle getBoundingBoxOnScreen(); - ::comphelper::AccessibleEventNotifier::TClientId getClientId() const { return m_aClientId; } - void setClientId(::comphelper::AccessibleEventNotifier::TClientId _aNewClientId) { m_aClientId = _aNewClientId; } - public: /** @return The osl::Mutex member provided by the class BaseMutex. */ ::osl::Mutex& getMutex( ) { return m_aMutex; } @@ -294,6 +291,9 @@ protected: css::uno::Reference< css::awt::XWindow > m_xFocusWindow; private: + ::comphelper::AccessibleEventNotifier::TClientId getClientId() const { return m_aClientId; } + void setClientId(::comphelper::AccessibleEventNotifier::TClientId _aNewClientId) { m_aClientId = _aNewClientId; } + /** Localized name. */ OUString maName; /** Localized description text. */ -- cgit