summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/gcc3_linux_hppa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 17:43:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 17:45:27 +0200
commit96f5b780f083ff97af5f570836267565d963e742 (patch)
tree036a18cfa6fa3bd63bec797088c76ef3db5c7758 /bridges/source/cpp_uno/gcc3_linux_hppa
parentb89681bef2e492bccb9502079e042ff495b40c39 (diff)
Use OUString::unacquired
found with git grep -E '\* *\<reinterpret_cast\>[^>]+\<OUString\>' Change-Id: I9306d4ad8e3b1664f54cb7df86f2d79bfd3c6cb9
Diffstat (limited to 'bridges/source/cpp_uno/gcc3_linux_hppa')
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx b/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
index 57808f9e3dbd..833a41548d18 100644
--- a/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
@@ -211,7 +211,7 @@ namespace CPPU_CURRENT_NAMESPACE
#if OSL_DEBUG_LEVEL > 1
OString cstr(
OUStringToOString(
- *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
+ OUString::unacquired( &pUnoExc->pType->pTypeName ),
RTL_TEXTENCODING_ASCII_US ) );
fprintf( stderr, "> uno exception occurred: %s\n", cstr.getStr() );
#endif
@@ -227,7 +227,7 @@ namespace CPPU_CURRENT_NAMESPACE
{
throw RuntimeException(
OUString("cannot get typedescription for type ") +
- *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) );
+ OUString::unacquired( &pUnoExc->pType->pTypeName ) );
}
pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
@@ -257,7 +257,7 @@ namespace CPPU_CURRENT_NAMESPACE
{
throw RuntimeException(
OUString("no rtti for type ") +
- *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) );
+ OUString::unacquired( &pUnoExc->pType->pTypeName ) );
}
}