diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-12-12 10:55:30 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-12-12 22:59:03 +0100 |
commit | 7abcb501e14a4cd4159b17f8365bb86c9c8eb302 (patch) | |
tree | 8f15ff6a3742a4b849ebe92b8f791e90a67d4785 /toolkit/inc/controls/accessiblecontrolcontext.hxx | |
parent | 2976e22f7a6740bb17933f67895ecbdbbe48cbd6 (diff) |
a11y: Merge OAccessibleControlContext::Init into ctor
Instead of calling a default ctor without arguments
and then calling OAccessibleControlContext::Init
with the arguments directly afterwards, move
the OAccessibleControlContext::Init logic into
the ctor right away.
There's no need for using such a "late ctor" as the
comment calls it. (No virtual methods involved.)
Change-Id: I815decd44ce94f242ea8c4814b33e2f73b39241f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178353
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'toolkit/inc/controls/accessiblecontrolcontext.hxx')
-rw-r--r-- | toolkit/inc/controls/accessiblecontrolcontext.hxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/toolkit/inc/controls/accessiblecontrolcontext.hxx b/toolkit/inc/controls/accessiblecontrolcontext.hxx index 31d5cf132a66..a61cf8a30227 100644 --- a/toolkit/inc/controls/accessiblecontrolcontext.hxx +++ b/toolkit/inc/controls/accessiblecontrolcontext.hxx @@ -86,16 +86,9 @@ namespace toolkit vcl::Window* implGetWindow( css::uno::Reference< css::awt::XWindow >* _pxUNOWindow = nullptr ) const; - /// ctor. @see Init - OAccessibleControlContext(); + OAccessibleControlContext(const css::uno::Reference<css::accessibility::XAccessible>& rxCreator); virtual ~OAccessibleControlContext() override; - /** late ctor - */ - void Init( - const css::uno::Reference< css::accessibility::XAccessible >& _rxCreator - ); - // OCommonAccessibleComponent overridables virtual css::awt::Rectangle implGetBounds( ) override; |