diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-10 16:30:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-10 17:39:59 +0100 |
commit | 2b0cfed33fa3f00485a4cf1566c90ede0a5139f0 (patch) | |
tree | 56e47e32f89a28a2cc4f982800979084b7c5f657 /toolkit | |
parent | 2f67d67cf3264f8647433a298dec7270f4bfb689 (diff) |
toolkit: simplify deprecated XTypeProvider.getImplementationId
Change-Id: Ibe481aebad026f8c182052f1327bed8a1054cf7a
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxmenu.cxx | 36 | ||||
-rw-r--r-- | toolkit/source/awt/vclxtopwindow.cxx | 31 | ||||
-rw-r--r-- | toolkit/source/controls/geometrycontrolmodel.cxx | 9 | ||||
-rw-r--r-- | toolkit/source/controls/grid/sortablegriddatamodel.cxx | 3 |
4 files changed, 4 insertions, 75 deletions
diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index 1a2bc62fad9d..64c780dc45e2 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -288,41 +288,7 @@ throw(css::uno::RuntimeException, std::exception) css::uno::Sequence< sal_Int8 > VCLXMenu::getImplementationId() throw(css::uno::RuntimeException, std::exception) { - ::osl::ResettableGuard < ::osl::Mutex > aGuard( GetMutex() ); - const bool bIsPopupMenu = IsPopupMenu(); - aGuard.clear(); - - static ::cppu::OImplementationId* pIdMenuBar = NULL; - static ::cppu::OImplementationId* pIdPopupMenu = NULL; - - if ( bIsPopupMenu ) - { - if( !pIdPopupMenu ) - { - ::osl::Guard< ::osl::Mutex > aGlobalGuard( ::osl::Mutex::getGlobalMutex() ); - if( !pIdPopupMenu ) - { - static ::cppu::OImplementationId idPopupMenu( false ); - pIdPopupMenu = &idPopupMenu; - } - } - - return (*pIdPopupMenu).getImplementationId(); - } - else - { - if( !pIdMenuBar ) - { - ::osl::Guard< ::osl::Mutex > aGlobalGuard( ::osl::Mutex::getGlobalMutex() ); - if( !pIdMenuBar ) - { - static ::cppu::OImplementationId idMenuBar( false ); - pIdMenuBar = &idMenuBar; - } - } - - return (*pIdMenuBar).getImplementationId(); - } + return css::uno::Sequence<sal_Int8>(); } void VCLXMenu::addMenuListener( diff --git a/toolkit/source/awt/vclxtopwindow.cxx b/toolkit/source/awt/vclxtopwindow.cxx index 1c344383dd65..8636454012c4 100644 --- a/toolkit/source/awt/vclxtopwindow.cxx +++ b/toolkit/source/awt/vclxtopwindow.cxx @@ -277,36 +277,7 @@ Window* VCLXTopWindow::GetWindowImpl() ::com::sun::star::uno::Sequence< sal_Int8 > VCLXTopWindow::getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) { - static ::cppu::OImplementationId* pId = NULL; - static ::cppu::OImplementationId* pIdWithHandle = NULL; - if ( isSystemDependentWindowPeer() ) - { - if( !pIdWithHandle ) - { - ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ); - if( !pIdWithHandle ) - { - static ::cppu::OImplementationId idWithHandle( false ); - pIdWithHandle = &idWithHandle; - } - } - - return (*pIdWithHandle).getImplementationId(); - } - else - { - if( !pId ) - { - ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ); - if( !pId ) - { - static ::cppu::OImplementationId id( false ); - pId = &id; - } - } - - return (*pId).getImplementationId(); - } + return css::uno::Sequence<sal_Int8>(); } ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > VCLXTopWindow::getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx index 0525980f23dc..650b6319f8f9 100644 --- a/toolkit/source/controls/geometrycontrolmodel.cxx +++ b/toolkit/source/controls/geometrycontrolmodel.cxx @@ -580,16 +580,9 @@ return new OCommonGeometryControlModel( _rxAggregateInstance, m_sServiceSpecifier ); } - namespace - { - class theOCommonGeometryControlModelImplementationId : - public rtl::Static< ::cppu::OImplementationId, theOCommonGeometryControlModelImplementationId > {}; - } - - Sequence< sal_Int8 > SAL_CALL OCommonGeometryControlModel::getImplementationId( ) throw (RuntimeException, std::exception) { - return theOCommonGeometryControlModelImplementationId::get().getImplementationId(); + return css::uno::Sequence<sal_Int8>(); } diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx index cd2e28c24e2b..8efdae7faab6 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx @@ -342,8 +342,7 @@ private: Sequence< ::sal_Int8 > SAL_CALL SortableGridDataModel::getImplementationId( ) throw (RuntimeException, std::exception) { - static ::cppu::OImplementationId aId; - return aId.getImplementationId(); + return css::uno::Sequence<sal_Int8>(); } |