From de82b32c4a9b5b2ac0dd9dee712da061bc34c2c3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 10 Apr 2017 10:14:11 +0200 Subject: Clean up uses of SAL_U/SAL_W: cli_ure Change-Id: I198be4023710206d66135c33fe01e1d9bb859272 --- cli_ure/source/native/native_share.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli_ure/source/native/native_share.h') diff --git a/cli_ure/source/native/native_share.h b/cli_ure/source/native/native_share.h index 5ef576862196..f733d2558c04 100644 --- a/cli_ure/source/native/native_share.h +++ b/cli_ure/source/native/native_share.h @@ -35,14 +35,15 @@ namespace util inline ::System::String ^ ustring_to_String( OUString const & ustr ) { - return gcnew ::System::String( SAL_W(ustr.getStr()), 0, ustr.getLength() ); + return gcnew ::System::String( + reinterpret_cast(ustr.getStr()), 0, ustr.getLength()); } inline OUString String_to_ustring( ::System::String ^ str ) { OSL_ASSERT( sizeof (wchar_t) == sizeof (sal_Unicode) ); pin_ptr chars = PtrToStringChars( str ); - return OUString( SAL_U(chars), str->Length ); + return OUString(reinterpret_cast(chars), str->Length); } template< typename T > -- cgit v1.2.3