diff options
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/invocation_adapterfactory/iafactory.cxx | 2 | ||||
-rw-r--r-- | stoc/source/security/access_controller.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index b8d4682b92b3..6fb7c6fd5a73 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -324,7 +324,7 @@ inline bool AdapterImpl::coerce_construct( static void handleInvokExc( uno_Any * pDest, uno_Any * pSource ) { OUString const & name = - *reinterpret_cast< OUString const * >( &pSource->pType->pTypeName ); + OUString::unacquired( &pSource->pType->pTypeName ); if ( name == "com.sun.star.reflection.InvocationTargetException" ) { diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index e772b9f161e1..82767f1b57ae 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -272,7 +272,7 @@ static inline Reference< security::XAccessControlContext > getDynamicRestriction { // avoid ref-counting OUString const & typeName = - *reinterpret_cast< OUString const * >( &acc.pType->pTypeName ); + OUString::unacquired( &acc.pType->pTypeName ); if ( typeName == "com.sun.star.security.XAccessControlContext" ) { return Reference< security::XAccessControlContext >( |