include/svx/AccessibleShape.hxx | 2 +- sd/source/ui/accessibility/AccessiblePresentationShape.cxx | 2 +- sd/source/ui/inc/AccessiblePresentationShape.hxx | 2 +- svx/source/accessibility/AccessibleShape.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 34e347db726a415f3f6df0c1f2112aff6d67bdeb Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sat Mar 5 09:40:41 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Mar 5 11:59:21 2022 +0100 AccessibleShape::GetStyle can be const Change-Id: Ic71ae0645c85ec27cc6a172d379070fe88a9f452 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131045 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/include/svx/AccessibleShape.hxx b/include/svx/AccessibleShape.hxx index 509bee235298..082bb72c4616 100644 --- a/include/svx/AccessibleShape.hxx +++ b/include/svx/AccessibleShape.hxx @@ -413,7 +413,7 @@ protected: /// @throws css::uno::RuntimeException OUString GetFullAccessibleName(AccessibleShape *shape); - virtual OUString GetStyle(); + virtual OUString GetStyle() const; /** Update the <const>OPAQUE</const> and <const>SELECTED</const> state. */ void UpdateStates(); diff --git a/sd/source/ui/accessibility/AccessiblePresentationShape.cxx b/sd/source/ui/accessibility/AccessiblePresentationShape.cxx index 3dacf6e73e8e..e4afe7e9a243 100644 --- a/sd/source/ui/accessibility/AccessiblePresentationShape.cxx +++ b/sd/source/ui/accessibility/AccessiblePresentationShape.cxx @@ -96,7 +96,7 @@ OUString AccessiblePresentationShape::CreateAccessibleBaseName() return sName; } -OUString AccessiblePresentationShape::GetStyle() +OUString AccessiblePresentationShape::GetStyle() const { OUString sName; diff --git a/sd/source/ui/inc/AccessiblePresentationShape.hxx b/sd/source/ui/inc/AccessiblePresentationShape.hxx index 1fd7d86b064f..4a6447ae974c 100644 --- a/sd/source/ui/inc/AccessiblePresentationShape.hxx +++ b/sd/source/ui/inc/AccessiblePresentationShape.hxx @@ -48,7 +48,7 @@ public: virtual OUString CreateAccessibleBaseName () override; - OUString GetStyle() override; + OUString GetStyle() const override; private: AccessiblePresentationShape (const AccessiblePresentationShape&) = delete; diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx index 8985e9cba6de..ee36cf297028 100644 --- a/svx/source/accessibility/AccessibleShape.cxx +++ b/svx/source/accessibility/AccessibleShape.cxx @@ -225,7 +225,7 @@ void AccessibleShape::UpdateStates() pStateSet->RemoveState (AccessibleStateType::SELECTED); } -OUString AccessibleShape::GetStyle() +OUString AccessibleShape::GetStyle() const { return ShapeTypeHandler::CreateAccessibleBaseName( mxShape ); }