summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/grid/gridcolumn.cxx5
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx5
2 files changed, 2 insertions, 8 deletions
diff --git a/toolkit/source/controls/grid/gridcolumn.cxx b/toolkit/source/controls/grid/gridcolumn.cxx
index 6db45b9ee00a..fa2119d434bc 100644
--- a/toolkit/source/controls/grid/gridcolumn.cxx
+++ b/toolkit/source/controls/grid/gridcolumn.cxx
@@ -23,7 +23,6 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
-#include <cppuhelper/typeprovider.hxx>
namespace toolkit
{
@@ -285,9 +284,7 @@ namespace toolkit
sal_Int64 SAL_CALL GridColumn::getSomething( const Sequence< sal_Int8 >& i_identifier )
{
- if ( comphelper::isUnoTunnelId<GridColumn>(i_identifier) )
- return ::sal::static_int_cast< sal_Int64 >( reinterpret_cast< sal_IntPtr >( this ) );
- return 0;
+ return comphelper::getSomethingImpl(i_identifier, this);
}
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index c30c5c6b3788..9f62a1ebc241 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -429,10 +429,7 @@ const css::uno::Sequence< sal_Int8 >& UnoControlModel::getUnoTunnelId() noexcept
sal_Int64 UnoControlModel::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier )
{
- if( comphelper::isUnoTunnelId<UnoControlModel>(rIdentifier) )
- return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_IntPtr >(this));
-
- return 0;
+ return comphelper::getSomethingImpl(rIdentifier, this);
}
// XInterface