diff options
Diffstat (limited to 'scripting/source/provider/MasterScriptProvider.cxx')
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index 282d631a6f21..041f77a65c40 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -141,15 +141,14 @@ void SAL_CALL MasterScriptProvider::initialize( const Sequence < Any >& args ) { Any aError( ::cppu::getCaughtException() ); - OUStringBuffer buf; - buf.append( "MasterScriptProvider::initialize: caught " ); - buf.append( aError.getValueTypeName() ); - buf.append( ":" ); - Exception aException; aError >>= aException; - buf.append ( aException.Message ); - throw lang::WrappedTargetException( buf.makeStringAndClear(), *this, aError ); + OUString buf = + "MasterScriptProvider::initialize: caught " + + aError.getValueTypeName() + + ":" + + aException.Message; + throw lang::WrappedTargetException( buf, *this, aError ); } if ( m_xInvocationContext.is() && m_xInvocationContext != m_xModel ) |