From 925a3a281e9fe4bc6d1f62d8c1ade83e46bf87f9 Mon Sep 17 00:00:00 2001 From: sb Date: Thu, 29 Oct 2009 15:48:48 +0100 Subject: sb116: #i106384# avoid GCC warnings produced if -fno-strict-aliasing were removed (patch by cmc) --- sal/rtl/source/bootstrap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal/rtl/source/bootstrap.cxx') diff --git a/sal/rtl/source/bootstrap.cxx b/sal/rtl/source/bootstrap.cxx index 23dab839d558..769251a6c4ec 100644 --- a/sal/rtl/source/bootstrap.cxx +++ b/sal/rtl/source/bootstrap.cxx @@ -820,8 +820,8 @@ void SAL_CALL rtl_bootstrap_set ( rtl_uString * pValue ) SAL_THROW_EXTERN_C() { - OUString const & name = *reinterpret_cast< OUString const * >( &pName ); - OUString const & value = *reinterpret_cast< OUString const * >( &pValue ); + const OUString name( pName ); + const OUString value( pValue ); osl::MutexGuard guard( osl::Mutex::getGlobalMutex() ); -- cgit