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 1be1b3a082b3..5ef576862196 100644
--- a/cli_ure/source/native/native_share.h
+++ b/cli_ure/source/native/native_share.h
@@ -35,14 +35,14 @@ namespace util
inline ::System::String ^ ustring_to_String( OUString const & ustr )
{
- return gcnew ::System::String( ustr.getStr(), 0, ustr.getLength() );
+ return gcnew ::System::String( SAL_W(ustr.getStr()), 0, ustr.getLength() );
}
inline OUString String_to_ustring( ::System::String ^ str )
{
OSL_ASSERT( sizeof (wchar_t) == sizeof (sal_Unicode) );
pin_ptr<wchar_t const> chars = PtrToStringChars( str );
- return OUString( chars, str->Length );
+ return OUString( SAL_U(chars), str->Length );
}
template< typename T >