summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/control/thumbnailviewacc.cxx6
-rw-r--r--sfx2/source/control/thumbnailviewacc.hxx9
2 files changed, 6 insertions, 9 deletions
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx
index 91b31ebc8a92..afb49746f496 100644
--- a/sfx2/source/control/thumbnailviewacc.cxx
+++ b/sfx2/source/control/thumbnailviewacc.cxx
@@ -486,7 +486,7 @@ sal_Int64 SAL_CALL ThumbnailViewAcc::getSomething( const uno::Sequence< sal_Int8
{
sal_Int64 nRet;
- if( ( rId.getLength() == 16 ) && ( 0 == memcmp( ThumbnailViewAcc::getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) )
+ if( isUnoTunnelId<ThumbnailViewAcc>(rId) )
nRet = reinterpret_cast< sal_Int64 >( this );
else
nRet = 0;
@@ -946,7 +946,7 @@ sal_Int64 SAL_CALL SfxThumbnailViewAcc::getSomething( const uno::Sequence< sal_I
{
sal_Int64 nRet;
- if( ( rId.getLength() == 16 ) && ( 0 == memcmp( SfxThumbnailViewAcc::getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) )
+ if( isUnoTunnelId<SfxThumbnailViewAcc>(rId) )
nRet = reinterpret_cast< sal_Int64 >( this );
else
nRet = 0;
@@ -1354,7 +1354,7 @@ sal_Int64 SAL_CALL ThumbnailViewItemAcc::getSomething( const uno::Sequence< sal_
{
sal_Int64 nRet;
- if( ( rId.getLength() == 16 ) && ( 0 == memcmp( ThumbnailViewItemAcc::getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) )
+ if( isUnoTunnelId<ThumbnailViewItemAcc>(rId) )
nRet = reinterpret_cast< sal_Int64 >( this );
else
nRet = 0;
diff --git a/sfx2/source/control/thumbnailviewacc.hxx b/sfx2/source/control/thumbnailviewacc.hxx
index 5eab7ffd9255..4d3f0d7ef181 100644
--- a/sfx2/source/control/thumbnailviewacc.hxx
+++ b/sfx2/source/control/thumbnailviewacc.hxx
@@ -118,6 +118,7 @@ public:
virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) override;
// XUnoTunnel
+ static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) override;
private:
@@ -127,8 +128,6 @@ private:
/// The current FOCUSED state.
bool mbIsFocused;
- static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
-
/** Tell all listeners that the object is dying. This callback is
usually called from the WeakComponentImplHelper class.
*/
@@ -210,6 +209,7 @@ public:
virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) override;
// XUnoTunnel
+ static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) override;
private:
@@ -217,8 +217,6 @@ private:
css::accessibility::XAccessibleEventListener > > mxEventListeners;
SfxThumbnailView* mpParent;
- static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
-
/** Tell all listeners that the object is dying. This callback is
usually called from the WeakComponentImplHelper class.
*/
@@ -264,8 +262,6 @@ private:
ThumbnailViewItem* mpParent;
bool const mbIsTransientChildrenDisabled;
- static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
-
public:
ThumbnailViewItemAcc( ThumbnailViewItem* pParent, bool bIsTransientChildrenDisabled );
@@ -308,6 +304,7 @@ public:
virtual sal_Int32 SAL_CALL getBackground( ) override;
// XUnoTunnel
+ static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) override;
};