diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:13 +0200 |
commit | 049a665bd81ee6d0d700d562d9fc6c953a4f097e (patch) | |
tree | 24de2eae284991f11666dc3e1063344bb110b703 /scripting | |
parent | 036551092cc213d0be183e2505201ef7d19da7ca (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I4c29e8b2c86816114ea2566348901710f601fd92
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/basprov/basprov.cxx | 10 | ||||
-rw-r--r-- | scripting/source/provider/ActiveMSPList.cxx | 12 | ||||
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.cxx | 6 | ||||
-rw-r--r-- | scripting/source/provider/URIHelper.cxx | 6 |
4 files changed, 17 insertions, 17 deletions
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx index 28e506e6026e..ad70df0e7c01 100644 --- a/scripting/source/basprov/basprov.cxx +++ b/scripting/source/basprov/basprov.cxx @@ -386,11 +386,11 @@ namespace basprov if ( !xScript.is() ) { OUStringBuffer aMessage; - aMessage.appendAscii( "The following Basic script could not be found:\n" ); - aMessage.appendAscii( "library: '" ).append( aLibrary ).appendAscii( "'\n" ); - aMessage.appendAscii( "module: '" ).append( aModule ).appendAscii( "'\n" ); - aMessage.appendAscii( "method: '" ).append( aMethod ).appendAscii( "'\n" ); - aMessage.appendAscii( "location: '" ).append( aLocation ).appendAscii( "'\n" ); + 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(), Reference< XInterface >(), diff --git a/scripting/source/provider/ActiveMSPList.cxx b/scripting/source/provider/ActiveMSPList.cxx index e3d3e71d6882..281b1e6c3811 100644 --- a/scripting/source/provider/ActiveMSPList.cxx +++ b/scripting/source/provider/ActiveMSPList.cxx @@ -139,8 +139,8 @@ Reference< provider::XScriptProvider > if ( !xScripts.is() ) { OUStringBuffer buf; - buf.appendAscii( "Failed to create MasterScriptProvider for ScriptInvocationContext: " ); - buf.appendAscii( "Component supporting XEmbeddScripts interface not found." ); + buf.append( "Failed to create MasterScriptProvider for ScriptInvocationContext: " ); + buf.append( "Component supporting XEmbeddScripts interface not found." ); throw lang::IllegalArgumentException( buf.makeStringAndClear(), NULL, 1 ); } @@ -177,9 +177,9 @@ Reference< provider::XScriptProvider > if ( !xScripts.is() && !xScriptsContext.is() ) { OUStringBuffer buf; - buf.appendAscii( "Failed to create MasterScriptProvider for '" ); + buf.append( "Failed to create MasterScriptProvider for '" ); buf.append ( context ); - buf.appendAscii( "': Either XEmbeddScripts or XScriptInvocationContext need to be supported by the document." ); + buf.append( "': Either XEmbeddScripts or XScriptInvocationContext need to be supported by the document." ); throw lang::IllegalArgumentException( buf.makeStringAndClear(), NULL, 1 ); } @@ -223,9 +223,9 @@ Reference< provider::XScriptProvider > catch( const Exception& ) { OUStringBuffer aMessage; - aMessage.appendAscii( "Failed to create MasterScriptProvider for context '" ); + aMessage.append( "Failed to create MasterScriptProvider for context '" ); aMessage.append ( context ); - aMessage.appendAscii( "'." ); + aMessage.append( "'." ); throw lang::WrappedTargetRuntimeException( aMessage.makeStringAndClear(), *this, ::cppu::getCaughtException() ); } diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index d7321bbb8528..a63252171a42 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -158,9 +158,9 @@ throw ( Exception, RuntimeException, std::exception ) Any aError( ::cppu::getCaughtException() ); OUStringBuffer buf; - buf.appendAscii( "MasterScriptProvider::initialize: caught " ); + buf.append( "MasterScriptProvider::initialize: caught " ); buf.append ( aError.getValueTypeName() ); - buf.appendAscii( ":" ); + buf.append( ":" ); Exception aException; aError >>= aException; buf.append ( aException.Message ); @@ -318,7 +318,7 @@ throw ( provider::ScriptFrameworkErrorException, { Reference< provider::XScriptProvider > xScriptProvider; OUStringBuffer buf( 80 ); - buf.appendAscii( "com.sun.star.script.provider.ScriptProviderFor"); + buf.append( "com.sun.star.script.provider.ScriptProviderFor"); buf.append( language ); OUString serviceName = buf.makeStringAndClear(); if ( providerCache() ) diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx index 7d7d4f4944a7..89ec4a3afe89 100644 --- a/scripting/source/provider/URIHelper.cxx +++ b/scripting/source/provider/URIHelper.cxx @@ -211,11 +211,11 @@ ScriptingFrameworkURIHelper::getScriptURI(const OUString& rStorageURI) { OUStringBuffer buf(120); - buf.appendAscii("vnd.sun.star.script:"); + buf.append("vnd.sun.star.script:"); buf.append(getLanguagePart(rStorageURI)); - buf.appendAscii("?language="); + buf.append("?language="); buf.append(m_sLanguage); - buf.appendAscii("&location="); + buf.append("&location="); buf.append(m_sLocation); return buf.makeStringAndClear(); |