summaryrefslogtreecommitdiffstats
path: root/cli_ure/source/climaker/climaker_share.h
diff options
context:
space:
mode:
Diffstat (limited to 'cli_ure/source/climaker/climaker_share.h')
-rw-r--r--cli_ure/source/climaker/climaker_share.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli_ure/source/climaker/climaker_share.h b/cli_ure/source/climaker/climaker_share.h
index ee36c6831d19..ed7ab256a3ad 100644
--- a/cli_ure/source/climaker/climaker_share.h
+++ b/cli_ure/source/climaker/climaker_share.h
@@ -82,7 +82,8 @@ ref struct Constants
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<wchar_t const *>(ustr.getStr()), 0, ustr.getLength());
}
@@ -90,7 +91,7 @@ inline OUString String_to_ustring( ::System::String ^ str )
{
OSL_ASSERT( sizeof (wchar_t) == sizeof (sal_Unicode) );
pin_ptr<const wchar_t> chars = PtrToStringChars( str );
- return OUString( SAL_U(chars), str->Length );
+ return OUString(reinterpret_cast<sal_Unicode const *>(chars), str->Length);
}
/* If the argument type is a typedef for an interface then the interface