diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-07 19:39:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-07 19:46:26 +0100 |
commit | b901f7699dae0c9985e80c22d4b9824b8386bdc1 (patch) | |
tree | 623c5994c830cf943d6c81c91143daeb59f16227 /svtools | |
parent | 4ba896806af7c92075c9dd82cda1749e2ad16295 (diff) |
x->getSomething(x->getImplementationId()) doesn't make any sense
...the point of the aIdentifier parameter to css.lang.XUnoTunnel.getSomething is
so that caller and callee can verify they know each other and the value passed
back (pointer in local address space, in this case) will actually make sense for
the caller.
Change-Id: Id79c419307992b30ea6ef7997b74a015631ad21c
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/graphic.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/graphic/graphic.cxx b/svtools/source/graphic/graphic.cxx index 49b0f35979c8..1248f6ae3e5f 100644 --- a/svtools/source/graphic/graphic.cxx +++ b/svtools/source/graphic/graphic.cxx @@ -251,14 +251,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, std::exception ) { - return( ( rId.getLength() == 16 && 0 == memcmp( getImplementationId().getConstArray(), rId.getConstArray(), 16 ) ) ? + return( ( rId.getLength() == 16 && 0 == memcmp( ::Graphic::getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) ? reinterpret_cast< sal_Int64 >( mpGraphic ) : 0 ); } |