summaryrefslogtreecommitdiff
path: root/toolkit/source/awt/vclxtopwindow.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 16:30:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 17:39:59 +0100
commit2b0cfed33fa3f00485a4cf1566c90ede0a5139f0 (patch)
tree56e47e32f89a28a2cc4f982800979084b7c5f657 /toolkit/source/awt/vclxtopwindow.cxx
parent2f67d67cf3264f8647433a298dec7270f4bfb689 (diff)
toolkit: simplify deprecated XTypeProvider.getImplementationId
Change-Id: Ibe481aebad026f8c182052f1327bed8a1054cf7a
Diffstat (limited to 'toolkit/source/awt/vclxtopwindow.cxx')
-rw-r--r--toolkit/source/awt/vclxtopwindow.cxx31
1 files changed, 1 insertions, 30 deletions
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)