From 83e191e25da8a508a2dafad339c0ee58e97c5c8b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Dec 2013 11:09:57 +0100 Subject: Do not use C++-UNO internal static_type functions in client code ...use cppu::UnoType instead. Change-Id: I507914b30ef8acda910ee4ecc0589fd328eb6f31 --- sfx2/source/doc/sfxbasemodel.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2/source/doc/sfxbasemodel.cxx') diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 44f9f92f991d..f7196d83a520 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -545,8 +545,8 @@ SfxBaseModel::~SfxBaseModel() Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType ) throw( RuntimeException ) { - if ( ( !m_bSupportEmbeddedScripts && rType.equals( document::XEmbeddedScripts::static_type() ) ) - || ( !m_bSupportDocRecovery && rType.equals( XDocumentRecovery::static_type() ) ) + if ( ( !m_bSupportEmbeddedScripts && rType.equals( cppu::UnoType::get() ) ) + || ( !m_bSupportDocRecovery && rType.equals( cppu::UnoType::get() ) ) ) return Any(); @@ -603,10 +603,10 @@ Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException Sequence< uno::Type > aTypes( SfxBaseModel_Base::getTypes() ); if ( !m_bSupportEmbeddedScripts ) - lcl_stripType( aTypes, document::XEmbeddedScripts::static_type() ); + lcl_stripType( aTypes, cppu::UnoType::get() ); if ( !m_bSupportDocRecovery ) - lcl_stripType( aTypes, XDocumentRecovery::static_type() ); + lcl_stripType( aTypes, cppu::UnoType::get() ); return aTypes; } -- cgit