summaryrefslogtreecommitdiff
path: root/scripting/source/basprov/basprov.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/basprov/basprov.cxx')
-rw-r--r--scripting/source/basprov/basprov.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx
index 39a95bd5da4a..3a1c047a351c 100644
--- a/scripting/source/basprov/basprov.cxx
+++ b/scripting/source/basprov/basprov.cxx
@@ -373,14 +373,12 @@ namespace basprov
if ( !xScript.is() )
{
- OUStringBuffer aMessage;
- aMessage.append( "The following Basic script could not be found:\n" );
- aMessage.append( "library: '" ).append( aLibrary ).append( "'\n" );
- aMessage.append( "module: '" ).append( aModule ).append( "'\n" );
- aMessage.append( "method: '" ).append( aMethod ).append( "'\n" );
- aMessage.append( "location: '" ).append( aLocation ).append( "'\n" );
throw provider::ScriptFrameworkErrorException(
- aMessage.makeStringAndClear(),
+ "The following Basic script could not be found:\n"
+ "library: '" + aLibrary + "'\n"
+ "module: '" + aModule + "'\n"
+ "method: '" + aMethod + "'\n"
+ "location: '" + aLocation + "'\n",
Reference< XInterface >(),
scriptURI, "Basic",
provider::ScriptFrameworkErrorType::NO_SUCH_SCRIPT );