diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:04:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:04:28 +0200 |
commit | 1d6cd0146e5e504665b0075311471109cdde52ea (patch) | |
tree | 2bfc4d9ec7bde6008a4dec9c4188d46ad7511fb6 /comphelper | |
parent | 5f5ccfc0a69de4c10b6adeeaaf284bcb07ab7f39 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I957be579527123be25abca0b7dcb69295711abf8
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/container/enumerablemap.cxx | 6 | ||||
-rw-r--r-- | comphelper/source/misc/configurationhelper.cxx | 12 | ||||
-rw-r--r-- | comphelper/source/misc/logging.cxx | 8 | ||||
-rw-r--r-- | comphelper/source/misc/namedvaluecollection.cxx | 6 | ||||
-rw-r--r-- | comphelper/source/misc/officeresourcebundle.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/property/propertycontainerhelper.cxx | 10 | ||||
-rw-r--r-- | comphelper/source/property/propertystatecontainer.cxx | 4 |
7 files changed, 24 insertions, 24 deletions
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx index 16725878d047..5b5f3a197a44 100644 --- a/comphelper/source/container/enumerablemap.cxx +++ b/comphelper/source/container/enumerablemap.cxx @@ -470,11 +470,11 @@ namespace comphelper if ( !bValid ) { OUStringBuffer aMessage; - aMessage.appendAscii( "Incompatible value type. Found '" ); + aMessage.append( "Incompatible value type. Found '" ); aMessage.append( _value.getValueTypeName() ); - aMessage.appendAscii( "', where '" ); + aMessage.append( "', where '" ); aMessage.append( m_aData.m_aValueType.getTypeName() ); - aMessage.appendAscii( "' (or compatible type) is expected." ); + aMessage.append( "' (or compatible type) is expected." ); throw IllegalTypeException( aMessage.makeStringAndClear(), *const_cast< EnumerableMap* >( this ) ); } diff --git a/comphelper/source/misc/configurationhelper.cxx b/comphelper/source/misc/configurationhelper.cxx index b3f7472a1c57..1cf5baebc4fd 100644 --- a/comphelper/source/misc/configurationhelper.cxx +++ b/comphelper/source/misc/configurationhelper.cxx @@ -87,9 +87,9 @@ css::uno::Any ConfigurationHelper::readRelativeKey(const css::uno::Reference< cs if (!xProps.is()) { OUStringBuffer sMsg(256); - sMsg.appendAscii("The requested path \""); + sMsg.append("The requested path \""); sMsg.append (sRelPath ); - sMsg.appendAscii("\" does not exists." ); + sMsg.append("\" does not exists." ); throw css::container::NoSuchElementException( sMsg.makeStringAndClear()); @@ -110,9 +110,9 @@ void ConfigurationHelper::writeRelativeKey(const css::uno::Reference< css::uno:: if (!xProps.is()) { OUStringBuffer sMsg(256); - sMsg.appendAscii("The requested path \""); + sMsg.append("The requested path \""); sMsg.append (sRelPath ); - sMsg.appendAscii("\" does not exists." ); + sMsg.append("\" does not exists." ); throw css::container::NoSuchElementException( sMsg.makeStringAndClear()); @@ -131,9 +131,9 @@ css::uno::Reference< css::uno::XInterface > ConfigurationHelper::makeSureSetNode if (!xSet.is()) { OUStringBuffer sMsg(256); - sMsg.appendAscii("The requested path \""); + sMsg.append("The requested path \""); sMsg.append (sRelPathToSet ); - sMsg.appendAscii("\" does not exists." ); + sMsg.append("\" does not exists." ); throw css::container::NoSuchElementException( sMsg.makeStringAndClear()); diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx index 9f6eb735133e..e6cef1d74454 100644 --- a/comphelper/source/misc/logging.cxx +++ b/comphelper/source/misc/logging.cxx @@ -233,7 +233,7 @@ namespace comphelper try { OUStringBuffer aBuffer; - aBuffer.appendAscii( "string:" ); + aBuffer.append( "string:" ); aBuffer.append( _nMessageResID ); OSL_VERIFY( _rxBundle->getDirectElement( aBuffer.makeStringAndClear() ) >>= sMessage ); } @@ -262,11 +262,11 @@ namespace comphelper if ( sMessage.isEmpty() ) { OUStringBuffer aBuffer; - aBuffer.appendAscii( "<invalid event resource: '" ); + aBuffer.append( "<invalid event resource: '" ); aBuffer.append( m_pData->sBundleBaseName ); - aBuffer.appendAscii( ":" ); + aBuffer.append( ":" ); aBuffer.append( _nMessageResID ); - aBuffer.appendAscii( "'>" ); + aBuffer.append( "'>" ); sMessage = aBuffer.makeStringAndClear(); } return sMessage; diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index cd6c7d6118fb..62705ace667b 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -252,11 +252,11 @@ namespace comphelper // argument exists, but is of wrong type OUStringBuffer aBuffer; - aBuffer.appendAscii( "Invalid value type for '" ); + aBuffer.append( "Invalid value type for '" ); aBuffer.append ( _rValueName ); - aBuffer.appendAscii( "'.\nExpected: " ); + aBuffer.append( "'.\nExpected: " ); aBuffer.append ( _rExpectedValueType.getTypeName() ); - aBuffer.appendAscii( "\nFound: " ); + aBuffer.append( "\nFound: " ); aBuffer.append ( pos->second.getValueType().getTypeName() ); throw IllegalArgumentException( aBuffer.makeStringAndClear(), NULL, 0 ); } diff --git a/comphelper/source/misc/officeresourcebundle.cxx b/comphelper/source/misc/officeresourcebundle.cxx index 535a20793cd0..daffd7cb618b 100644 --- a/comphelper/source/misc/officeresourcebundle.cxx +++ b/comphelper/source/misc/officeresourcebundle.cxx @@ -97,7 +97,7 @@ namespace comphelper OUString ResourceBundle_Impl::impl_getStringResourceKey( sal_Int32 _resourceId ) { OUStringBuffer key; - key.appendAscii( "string:" ); + key.append( "string:" ); key.append( _resourceId ); return key.makeStringAndClear(); } diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx index 1d4a91197391..335919b02cb7 100644 --- a/comphelper/source/property/propertycontainerhelper.cxx +++ b/comphelper/source/property/propertycontainerhelper.cxx @@ -202,14 +202,14 @@ namespace void lcl_throwIllegalPropertyValueTypeException( const PropertyDescription& _rProperty, const Any& _rValue ) { OUStringBuffer aErrorMessage; - aErrorMessage.appendAscii( "The given value cannot be converted to the required property type." ); - aErrorMessage.appendAscii( "\n(property name \"" ); + aErrorMessage.append( "The given value cannot be converted to the required property type." ); + aErrorMessage.append( "\n(property name \"" ); aErrorMessage.append( _rProperty.aProperty.Name ); - aErrorMessage.appendAscii( "\", found value type \"" ); + aErrorMessage.append( "\", found value type \"" ); aErrorMessage.append( _rValue.getValueType().getTypeName() ); - aErrorMessage.appendAscii( "\", required property type \"" ); + aErrorMessage.append( "\", required property type \"" ); aErrorMessage.append( _rProperty.aProperty.Type.getTypeName() ); - aErrorMessage.appendAscii( "\")" ); + aErrorMessage.append( "\")" ); throw IllegalArgumentException( aErrorMessage.makeStringAndClear(), NULL, 4 ); } } diff --git a/comphelper/source/property/propertystatecontainer.cxx b/comphelper/source/property/propertystatecontainer.cxx index db12ef5d585e..3b5e7ed7506b 100644 --- a/comphelper/source/property/propertystatecontainer.cxx +++ b/comphelper/source/property/propertystatecontainer.cxx @@ -38,9 +38,9 @@ namespace comphelper // strings only would suffice, and could be realized with an UNO service, so we do not // need the dependency to the Tools project) OUStringBuffer sMessage; - sMessage.appendAscii( "The property \"" ); + sMessage.append( "The property \"" ); sMessage.append( _rPropertyName ); - sMessage.appendAscii( "\" is unknown." ); + sMessage.append( "\" is unknown." ); return sMessage.makeStringAndClear(); } } |