diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:15 +0200 |
commit | e9b75064158a9482d79a123319ad0fe8c497e40a (patch) | |
tree | d6ed41177bc5682addc6cbf218bd51f533e640f7 /framework/source/xml | |
parent | 2cef646fc19add099d3da7ef46865390e7ca7b16 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Iadb6e16a7aca322a78a82ae1a52f5d085b300efc
Diffstat (limited to 'framework/source/xml')
-rw-r--r-- | framework/source/xml/acceleratorconfigurationreader.cxx | 8 | ||||
-rw-r--r-- | framework/source/xml/imagesdocumenthandler.cxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/framework/source/xml/acceleratorconfigurationreader.cxx b/framework/source/xml/acceleratorconfigurationreader.cxx index 7e768f98da37..000e831d6045 100644 --- a/framework/source/xml/acceleratorconfigurationreader.cxx +++ b/framework/source/xml/acceleratorconfigurationreader.cxx @@ -46,7 +46,7 @@ namespace framework{ { \ OUStringBuffer sMessage(256); \ sMessage.append (implts_getErrorLineString()); \ - sMessage.appendAscii(COMMENT ); \ + sMessage.append(COMMENT ); \ \ throw css::xml::sax::SAXException( \ sMessage.makeStringAndClear(), \ @@ -273,11 +273,11 @@ OUString AcceleratorConfigurationReader::implts_getErrorLineString() return OUString("Error during parsing XML. (No further info available ...)"); OUStringBuffer sMsg(256); - sMsg.appendAscii("Error during parsing XML in\nline = "); + sMsg.append("Error during parsing XML in\nline = "); sMsg.append (m_xLocator->getLineNumber() ); - sMsg.appendAscii("\ncolumn = " ); + sMsg.append("\ncolumn = " ); sMsg.append (m_xLocator->getColumnNumber() ); - sMsg.appendAscii("." ); + sMsg.append("." ); return sMsg.makeStringAndClear(); } diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx index aab2c4c64f37..f2a86863e25a 100644 --- a/framework/source/xml/imagesdocumenthandler.cxx +++ b/framework/source/xml/imagesdocumenthandler.cxx @@ -115,11 +115,11 @@ OReadImagesDocumentHandler::OReadImagesDocumentHandler( ImageListsDescriptor& aI OUStringBuffer temp( 20 ); if ( ImagesEntries[i].nNamespace == IMG_NS_IMAGE ) - temp.appendAscii( XMLNS_IMAGE ); + temp.append( XMLNS_IMAGE ); else - temp.appendAscii( XMLNS_XLINK ); + temp.append( XMLNS_XLINK ); - temp.appendAscii( XMLNS_FILTER_SEPARATOR ); + temp.append( XMLNS_FILTER_SEPARATOR ); temp.appendAscii( ImagesEntries[i].aEntryName ); m_aImageMap.insert( ImageHashMap::value_type( temp.makeStringAndClear(), (Image_XML_Entry)i ) ); } @@ -703,7 +703,7 @@ void OWriteImagesDocumentHandler::WriteImageList( const ImageListItemDescriptor* OUStringBuffer aColorStrBuffer( 8 ); sal_Int64 nValue = pImageList->aMaskColor.GetRGBColor(); - aColorStrBuffer.appendAscii( "#" ); + aColorStrBuffer.append( "#" ); aColorStrBuffer.append( OUString::number( nValue, 16 )); pList->AddAttribute( m_aXMLImageNS + ATTRIBUTE_MASKCOLOR, |