summaryrefslogtreecommitdiff
path: root/cli_ure/source/native/native_share.h
diff options
context:
space:
mode:
Diffstat (limited to 'cli_ure/source/native/native_share.h')
-rw-r--r--cli_ure/source/native/native_share.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli_ure/source/native/native_share.h b/cli_ure/source/native/native_share.h
index 7e1966e0a0d9..9b3ebe1ac9b9 100644
--- a/cli_ure/source/native/native_share.h
+++ b/cli_ure/source/native/native_share.h
@@ -62,7 +62,7 @@ inline ::System::Object ^ to_cli(
intptr_t intptr =
reinterpret_cast< intptr_t >(
- mapping.mapInterface( x.get(), ::getCppuType( &x ) ) );
+ mapping.mapInterface( x.get(), cppu::UnoType<decltype(x)>::get() ) );
::System::Runtime::InteropServices::GCHandle ^ handle = ::System::Runtime::InteropServices::GCHandle::FromIntPtr(::System::IntPtr(intptr));
::System::Object ^ ret = handle->Target;
handle->Free();
@@ -100,7 +100,7 @@ inline void to_uno(
ERROR: either _WIN64 or _WIN32 must be defined
#endif
),
- ::getCppuType( pRet ) );
+ cppu::UnoType<T>::get() );
handle.Free();
pRet->set( ret, SAL_NO_ACQUIRE /* takeover ownership */ );
}