summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-12 15:07:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-12 19:57:24 +0200
commitf7a86c5cdf4323c99d26512bf78de7f7c380667d (patch)
treef299cbf4ca27b5db0e81a90cc6551469fa280e63 /accessibility
parentc5e5467f6a13aba68b4706a4d7feb130e824bcc6 (diff)
simplify the vcl<->toolkit connection
No need to store two different pointers and hide the underlying class behind an UNO interface Change-Id: I72c55e912caa9eae1cffa6c9d1b1d480e5668d40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115496 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/accessibletabbar.cxx2
-rw-r--r--accessibility/source/standard/accessiblemenucomponent.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx
index 218ed1cab071..f450bfc526f0 100644
--- a/accessibility/source/extended/accessibletabbar.cxx
+++ b/accessibility/source/extended/accessibletabbar.cxx
@@ -458,7 +458,7 @@ namespace accessibility
Reference< awt::XFont > xFont;
if ( m_pTabBar )
{
- Reference< awt::XDevice > xDev( m_pTabBar->GetComponentInterface(), UNO_QUERY );
+ auto xDev = m_pTabBar->GetComponentInterfaceAs<awt::XDevice>();
if ( xDev.is() )
{
vcl::Font aFont;
diff --git a/accessibility/source/standard/accessiblemenucomponent.cxx b/accessibility/source/standard/accessiblemenucomponent.cxx
index be9b1e6f453e..e004c2b1942b 100644
--- a/accessibility/source/standard/accessiblemenucomponent.cxx
+++ b/accessibility/source/standard/accessiblemenucomponent.cxx
@@ -301,7 +301,7 @@ Reference< awt::XFont > OAccessibleMenuComponent::getFont( )
vcl::Window* pWindow = m_pMenu->GetWindow();
if ( pWindow )
{
- Reference< awt::XDevice > xDev( pWindow->GetComponentInterface(), UNO_QUERY );
+ auto xDev = pWindow->GetComponentInterfaceAs<awt::XDevice>();
if ( xDev.is() )
{
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();