summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-07 14:27:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-07 21:30:32 +0200
commit7a3509b153246a7018748d83c9fef552544eab2b (patch)
tree118159784dbf67ad3b5505dfe32844ba893149b3 /toolkit
parent9429864a3fce4dae1e6d9387a1747a338768f316 (diff)
use cppu::WeakImplHelper in VCLXFont
Change-Id: Iab0ff79ba1f94f087b57faefa3945aba1ed42448 Reviewed-on: https://gerrit.libreoffice.org/80387 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxfont.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx
index 057a3c610c8b..534732c121f7 100644
--- a/toolkit/source/awt/vclxfont.cxx
+++ b/toolkit/source/awt/vclxfont.cxx
@@ -65,34 +65,9 @@ bool VCLXFont::ImplAssertValidFontMetric()
return mpFontMetric != nullptr;
}
-
-// css::uno::XInterface
-css::uno::Any VCLXFont::queryInterface( const css::uno::Type & rType )
-{
- css::uno::Any aRet = ::cppu::queryInterface( rType,
- static_cast< css::awt::XFont* >(this),
- static_cast< css::awt::XFont2* >(this),
- static_cast< css::lang::XUnoTunnel* >(this),
- static_cast< css::lang::XTypeProvider* >(this) );
- return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ));
-}
-
// css::lang::XUnoTunnel
UNO3_GETIMPLEMENTATION_IMPL( VCLXFont );
-IMPL_IMPLEMENTATION_ID( VCLXFont )
-
-// css::lang::XTypeProvider
-css::uno::Sequence< css::uno::Type > VCLXFont::getTypes()
-{
- static const css::uno::Sequence< css::uno::Type > aTypeList {
- cppu::UnoType<css::lang::XTypeProvider>::get(),
- cppu::UnoType<css::awt::XFont2>::get()
- };
- return aTypeList;
-}
-
-
css::awt::FontDescriptor VCLXFont::getFontDescriptor( )
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );