From 96f5b780f083ff97af5f570836267565d963e742 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Mar 2015 17:43:43 +0200 Subject: Use OUString::unacquired found with git grep -E '\* *\[^>]+\' Change-Id: I9306d4ad8e3b1664f54cb7df86f2d79bfd3c6cb9 --- cppu/source/typelib/typelib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppu') diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index f0a31d29f94c..4ae195745b41 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -1957,7 +1957,7 @@ extern "C" void SAL_CALL typelib_typedescription_getByName( if (0 == *ppRet) { // check for sequence - OUString const & name = *reinterpret_cast< OUString const * >( &pName ); + OUString const & name = OUString::unacquired( &pName ); if (2 < name.getLength() && '[' == name[ 0 ]) { OUString element_name( name.copy( 2 ) ); -- cgit