diff options
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxfont.cxx | 3 | ||||
-rw-r--r-- | toolkit/source/helper/vclunohelper.cxx | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx index 866a362e710f..01e7aaae7944 100644 --- a/toolkit/source/awt/vclxfont.cxx +++ b/toolkit/source/awt/vclxfont.cxx @@ -64,9 +64,6 @@ bool VCLXFont::ImplAssertValidFontMetric() return mpFontMetric != nullptr; } -// css::lang::XUnoTunnel -UNO3_GETIMPLEMENTATION_IMPL( VCLXFont ); - css::awt::FontDescriptor VCLXFont::getFontDescriptor( ) { std::unique_lock aGuard( maMutex ); diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx index bac88c66268a..42b55c6db04f 100644 --- a/toolkit/source/helper/vclunohelper.cxx +++ b/toolkit/source/helper/vclunohelper.cxx @@ -250,7 +250,7 @@ vcl::Font VCLUnoHelper::CreateFont( const css::awt::FontDescriptor& rDescr, cons vcl::Font VCLUnoHelper::CreateFont( const css::uno::Reference< css::awt::XFont >& rxFont ) { vcl::Font aFont; - VCLXFont* pVCLXFont = comphelper::getFromUnoTunnel<VCLXFont>( rxFont ); + VCLXFont* pVCLXFont = dynamic_cast<VCLXFont*>( rxFont.get() ); if ( pVCLXFont ) aFont = pVCLXFont->GetFont(); return aFont; |