diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-12 11:09:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-12 11:10:10 +0100 |
commit | 83e191e25da8a508a2dafad339c0ee58e97c5c8b (patch) | |
tree | 41ffadeda7fcf325b0d0bdd5764fe4bd7282319e /sfx2/source | |
parent | 7bf2f528ef22f50aa167ba57f2e25d4452977060 (diff) |
Do not use C++-UNO internal static_type functions in client code
...use cppu::UnoType instead.
Change-Id: I507914b30ef8acda910ee4ecc0589fd328eb6f31
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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<document::XEmbeddedScripts>::get() ) ) + || ( !m_bSupportDocRecovery && rType.equals( cppu::UnoType<XDocumentRecovery>::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<document::XEmbeddedScripts>::get() ); if ( !m_bSupportDocRecovery ) - lcl_stripType( aTypes, XDocumentRecovery::static_type() ); + lcl_stripType( aTypes, cppu::UnoType<XDocumentRecovery>::get() ); return aTypes; } |