diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:45 +0200 |
commit | f5eeaaac7c4e73b60e69355303a4e9a2f9180d55 (patch) | |
tree | f84c28f93e071fa28ff1fc1751c56a1492ea012f /pyuno/source/module/pyuno_except.cxx | |
parent | f14a9da3229f13b49684ddfcb15bea48739c8efe (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I98058ff0653a3aab3399735271d04b16a05a3684
Diffstat (limited to 'pyuno/source/module/pyuno_except.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_except.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pyuno/source/module/pyuno_except.cxx b/pyuno/source/module/pyuno_except.cxx index f9adec7f08da..2c14af9be646 100644 --- a/pyuno/source/module/pyuno_except.cxx +++ b/pyuno/source/module/pyuno_except.cxx @@ -50,11 +50,11 @@ void raisePyExceptionWithAny( const com::sun::star::uno::Any &anyExc ) anyExc >>= e; OUStringBuffer buf; - buf.appendAscii( "Couldn't convert uno exception to a python exception (" ); + buf.append( "Couldn't convert uno exception to a python exception (" ); buf.append(anyExc.getValueType().getTypeName()); - buf.appendAscii( ": " ); + buf.append( ": " ); buf.append(e.Message ); - buf.appendAscii( ")" ); + buf.append( ")" ); PyErr_SetString( PyExc_SystemError, OUStringToOString(buf.makeStringAndClear(),RTL_TEXTENCODING_ASCII_US).getStr() ); @@ -87,8 +87,8 @@ static PyRef createClass( const OUString & name, const Runtime &runtime ) if( ! desc.is() ) { OUStringBuffer buf; - buf.appendAscii( "pyuno.getClass: uno exception " ); - buf.append(name).appendAscii( " is unknown" ); + buf.append( "pyuno.getClass: uno exception " ); + buf.append(name).append( " is unknown" ); throw RuntimeException( buf.makeStringAndClear() ); } @@ -98,10 +98,10 @@ static PyRef createClass( const OUString & name, const Runtime &runtime ) if( !isStruct && !isExc && ! isInterface ) { OUStringBuffer buf; - buf.appendAscii( "pyuno.getClass: " ).append(name).appendAscii( "is a " ); + buf.append( "pyuno.getClass: " ).append(name).append( "is a " ); buf.appendAscii( typeClassToString( (com::sun::star::uno::TypeClass) desc.get()->eTypeClass)); - buf.appendAscii( ", expected EXCEPTION, STRUCT or INTERFACE" ); + buf.append( ", expected EXCEPTION, STRUCT or INTERFACE" ); throw RuntimeException( buf.makeStringAndClear() ); } |