summaryrefslogtreecommitdiff
path: root/svtools/source/graphic/graphic.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-09 17:06:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-09 17:46:39 +0200
commit7275be15191c08009ac9c359163e3eeb1be25ca7 (patch)
treea42ab599617c664c8e2a304c244b426ddc8960d6 /svtools/source/graphic/graphic.cxx
parent4209a6127d96c61295fad6e8f2c512644aadf850 (diff)
sb140: #i117291# do not mis-use XTypeProvider.getImplementationId in XUnoTunnel.getSomething
Diffstat (limited to 'svtools/source/graphic/graphic.cxx')
-rw-r--r--svtools/source/graphic/graphic.cxx19
1 files changed, 3 insertions, 16 deletions
diff --git a/svtools/source/graphic/graphic.cxx b/svtools/source/graphic/graphic.cxx
index cf212d9d8fce..315f370a9287 100644
--- a/svtools/source/graphic/graphic.cxx
+++ b/svtools/source/graphic/graphic.cxx
@@ -114,19 +114,6 @@ void SAL_CALL Graphic::release() throw()
// ------------------------------------------------------------------------------
-namespace
-{
- class theGraphicUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theGraphicUnoTunnelId > {};
-}
-
-uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId_Static()
- throw(uno::RuntimeException)
-{
- return theGraphicUnoTunnelId::get().getSeq();
-}
-
-// ------------------------------------------------------------------------------
-
::rtl::OUString Graphic::getImplementationName_Static()
throw()
{
@@ -210,7 +197,7 @@ uno::Sequence< uno::Type > SAL_CALL Graphic::getTypes()
uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId()
throw(uno::RuntimeException)
{
- return getImplementationId_Static();
+ return uno::Sequence< sal_Int8 >();
}
// ------------------------------------------------------------------------------
@@ -282,14 +269,14 @@ const ::Graphic* Graphic::getImplementation( const uno::Reference< uno::XInterfa
throw()
{
uno::Reference< lang::XUnoTunnel > xTunnel( rxIFace, uno::UNO_QUERY );
- return( xTunnel.is() ? reinterpret_cast< ::Graphic* >( xTunnel->getSomething( getImplementationId_Static() ) ) : NULL );
+ return( xTunnel.is() ? reinterpret_cast< ::Graphic* >( xTunnel->getSomething( ::Graphic::getUnoTunnelId() ) ) : NULL );
}
//----------------------------------------------------------------------
sal_Int64 SAL_CALL Graphic::getSomething( const uno::Sequence< sal_Int8 >& rId )
throw( uno::RuntimeException )
{
- return( ( rId.getLength() == 16 && 0 == rtl_compareMemory( getImplementationId().getConstArray(), rId.getConstArray(), 16 ) ) ?
+ return( ( rId.getLength() == 16 && 0 == rtl_compareMemory( ::Graphic::getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) ?
reinterpret_cast< sal_Int64 >( mpGraphic ) :
0 );
}