summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-12-04 16:02:29 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-12-04 20:47:37 +0100
commitdef785ee31bc71fc8edb4f717280265fa9f80b0a (patch)
tree261e88c0a5dbab30324f2413067a3491751f8408
parent739b0716504d2526fb7283100420e4bd5eacb7c2 (diff)
a11y: Use vcl::Window instead of VCLXWindow right away
Use the vcl::Window for the null check instead of the corresponding VCLXWindow. There's no need to use a toolkit class here, in particular since the vcl::Window is used later anyway. Change-Id: Ia2c80f9634eadf33601af8c9ea1f628e7ea3e96b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177813 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--accessibility/source/standard/vclxaccessibleedit.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx
index 5cb259dddc08..e87ed8960503 100644
--- a/accessibility/source/standard/vclxaccessibleedit.cxx
+++ b/accessibility/source/standard/vclxaccessibleedit.cxx
@@ -108,12 +108,12 @@ void VCLXAccessibleEdit::FillAccessibleStateSet( sal_Int64& rStateSet )
{
VCLXAccessibleTextComponent::FillAccessibleStateSet( rStateSet );
- VCLXWindow* pVCLXWindow = GetVCLXWindow();
- if (pVCLXWindow)
+ vcl::Window* pWindow = GetWindow();
+ if (pWindow)
{
rStateSet |= AccessibleStateType::FOCUSABLE;
- if (GetWindow() && GetWindow()->GetType() == WindowType::MULTILINEEDIT)
+ if (pWindow->GetType() == WindowType::MULTILINEEDIT)
rStateSet |= AccessibleStateType::MULTI_LINE;
else
rStateSet |= AccessibleStateType::SINGLE_LINE;