loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: I15e50849c5c7b897ff519e7184196535debd47da
This commit is contained in:
Stephan Bergmann
2015-08-31 08:02:39 +02:00
parent 4b6016af7c
commit f14a9da322
4 changed files with 8 additions and 8 deletions

View File

@@ -227,7 +227,7 @@ OUString OReportEngineJFree::getNewOutputName()
// some meta data
SvtUserOptions aUserOpts;
OUStringBuffer sAuthor(aUserOpts.GetFirstName());
sAuthor.appendAscii(" ");
sAuthor.append(" ");
sAuthor.append(aUserOpts.GetLastName());
static const char s_sAuthor[] = "Author";
aConvertedProperties[nPos].Name = s_sAuthor;

View File

@@ -64,9 +64,9 @@ namespace rptui
{
OUStringBuffer aBuffer;
aBuffer.append( sFieldPrefix );
aBuffer.appendAscii( "[" );
aBuffer.append( "[" );
aBuffer.append( _rFieldOrExpression );
aBuffer.appendAscii( "]" );
aBuffer.append( "]" );
m_sCompleteFormula = aBuffer.makeStringAndClear();
}
break;
@@ -119,10 +119,10 @@ namespace rptui
bool bIsField = ( getType() == Field );
OUStringBuffer aFieldContent;
if ( bIsField )
aFieldContent.appendAscii( "[" );
aFieldContent.append( "[" );
aFieldContent.append( getUndecoratedContent() );
if ( bIsField )
aFieldContent.appendAscii( "]" );
aFieldContent.append( "]" );
return aFieldContent.makeStringAndClear();
}
@@ -141,7 +141,7 @@ namespace rptui
OUString ReportFormula::getEqualUndecoratedContent() const
{
OUStringBuffer aBuffer;
aBuffer.appendAscii( "=" );
aBuffer.append( "=" );
aBuffer.append( getUndecoratedContent() );
return aBuffer.makeStringAndClear();
}

View File

@@ -37,7 +37,7 @@ namespace rptui
OUStringBuffer aBuffer;
OUString aTmp( OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8) );
DBG_ASSERT( INetURLObject( aTmp ).GetProtocol() == INetProtocol::NotValid, "Wrong HelpId!" );
aBuffer.appendAscii( INET_HID_SCHEME );
aBuffer.append( INET_HID_SCHEME );
aBuffer.append( aTmp.getStr() );
return aBuffer.makeStringAndClear();
}

View File

@@ -93,7 +93,7 @@ namespace rptui
if ( !sLabel.isEmpty() )
{
OUStringBuffer aBuffer;
aBuffer.appendAscii( "=" );
aBuffer.append( "=" );
aBuffer.append( sLabel );
sDataField = aBuffer.makeStringAndClear();
bSet = false;