summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/hierarchy
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:56 +0200
commit94c76686b5b626cf8f771fc740e51c506c7a11bd (patch)
treee0ef40c7dfe04cef0ba0278ca6ef965f8d3d3bcd /ucb/source/ucp/hierarchy
parentc168ff9c5e5a81cb610ebd1f4a2b763df51e17a2 (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I18420ed24918d77be30a1b4b3a7d55f5299fb82e
Diffstat (limited to 'ucb/source/ucp/hierarchy')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydata.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx
index 4572a34b093c..bd9805c1b557 100644
--- a/ucb/source/ucp/hierarchy/hierarchydata.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx
@@ -67,23 +67,23 @@ void makeXMLName( const OUString & rIn, OUStringBuffer & rBuffer )
switch ( c )
{
case '&':
- rBuffer.appendAscii( "&amp;" );
+ rBuffer.append( "&amp;" );
break;
case '"':
- rBuffer.appendAscii( "&quot;" );
+ rBuffer.append( "&quot;" );
break;
case '\'':
- rBuffer.appendAscii( "&apos;" );
+ rBuffer.append( "&apos;" );
break;
case '<':
- rBuffer.appendAscii( "&lt;" );
+ rBuffer.append( "&lt;" );
break;
case '>':
- rBuffer.appendAscii( "&gt;" );
+ rBuffer.append( "&gt;" );
break;
default:
@@ -996,7 +996,7 @@ OUString HierarchyEntry::createPathFromHierarchyURL(
if ( nLen )
{
OUStringBuffer aNewPath;
- aNewPath.appendAscii( "['" );
+ aNewPath.append( "['" );
sal_Int32 nStart = 0;
sal_Int32 nEnd = aPath.indexOf( '/' );
@@ -1011,12 +1011,12 @@ OUString HierarchyEntry::createPathFromHierarchyURL(
if ( nEnd != nLen )
{
- aNewPath.appendAscii( "']/Children/['" );
+ aNewPath.append( "']/Children/['" );
nStart = nEnd + 1;
nEnd = aPath.indexOf( '/', nStart );
}
else
- aNewPath.appendAscii( "']" );
+ aNewPath.append( "']" );
}
while ( nEnd != nLen );
@@ -1115,9 +1115,9 @@ const HierarchyEntryData& HierarchyEntry::iterator::operator*() const
try
{
OUStringBuffer aKey;
- aKey.appendAscii( "['" );
+ aKey.append( "['" );
makeXMLName( m_pImpl->names.getConstArray()[ m_pImpl->pos ], aKey );
- aKey.appendAscii( "']" );
+ aKey.append( "']" );
OUString aTitle = aKey.makeStringAndClear();
OUString aTargetURL = aTitle;