loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I15e50849c5c7b897ff519e7184196535debd47da
This commit is contained in:
@@ -227,7 +227,7 @@ OUString OReportEngineJFree::getNewOutputName()
|
|||||||
// some meta data
|
// some meta data
|
||||||
SvtUserOptions aUserOpts;
|
SvtUserOptions aUserOpts;
|
||||||
OUStringBuffer sAuthor(aUserOpts.GetFirstName());
|
OUStringBuffer sAuthor(aUserOpts.GetFirstName());
|
||||||
sAuthor.appendAscii(" ");
|
sAuthor.append(" ");
|
||||||
sAuthor.append(aUserOpts.GetLastName());
|
sAuthor.append(aUserOpts.GetLastName());
|
||||||
static const char s_sAuthor[] = "Author";
|
static const char s_sAuthor[] = "Author";
|
||||||
aConvertedProperties[nPos].Name = s_sAuthor;
|
aConvertedProperties[nPos].Name = s_sAuthor;
|
||||||
|
@@ -64,9 +64,9 @@ namespace rptui
|
|||||||
{
|
{
|
||||||
OUStringBuffer aBuffer;
|
OUStringBuffer aBuffer;
|
||||||
aBuffer.append( sFieldPrefix );
|
aBuffer.append( sFieldPrefix );
|
||||||
aBuffer.appendAscii( "[" );
|
aBuffer.append( "[" );
|
||||||
aBuffer.append( _rFieldOrExpression );
|
aBuffer.append( _rFieldOrExpression );
|
||||||
aBuffer.appendAscii( "]" );
|
aBuffer.append( "]" );
|
||||||
m_sCompleteFormula = aBuffer.makeStringAndClear();
|
m_sCompleteFormula = aBuffer.makeStringAndClear();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -119,10 +119,10 @@ namespace rptui
|
|||||||
bool bIsField = ( getType() == Field );
|
bool bIsField = ( getType() == Field );
|
||||||
OUStringBuffer aFieldContent;
|
OUStringBuffer aFieldContent;
|
||||||
if ( bIsField )
|
if ( bIsField )
|
||||||
aFieldContent.appendAscii( "[" );
|
aFieldContent.append( "[" );
|
||||||
aFieldContent.append( getUndecoratedContent() );
|
aFieldContent.append( getUndecoratedContent() );
|
||||||
if ( bIsField )
|
if ( bIsField )
|
||||||
aFieldContent.appendAscii( "]" );
|
aFieldContent.append( "]" );
|
||||||
|
|
||||||
return aFieldContent.makeStringAndClear();
|
return aFieldContent.makeStringAndClear();
|
||||||
}
|
}
|
||||||
@@ -141,7 +141,7 @@ namespace rptui
|
|||||||
OUString ReportFormula::getEqualUndecoratedContent() const
|
OUString ReportFormula::getEqualUndecoratedContent() const
|
||||||
{
|
{
|
||||||
OUStringBuffer aBuffer;
|
OUStringBuffer aBuffer;
|
||||||
aBuffer.appendAscii( "=" );
|
aBuffer.append( "=" );
|
||||||
aBuffer.append( getUndecoratedContent() );
|
aBuffer.append( getUndecoratedContent() );
|
||||||
return aBuffer.makeStringAndClear();
|
return aBuffer.makeStringAndClear();
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ namespace rptui
|
|||||||
OUStringBuffer aBuffer;
|
OUStringBuffer aBuffer;
|
||||||
OUString aTmp( OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8) );
|
OUString aTmp( OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8) );
|
||||||
DBG_ASSERT( INetURLObject( aTmp ).GetProtocol() == INetProtocol::NotValid, "Wrong HelpId!" );
|
DBG_ASSERT( INetURLObject( aTmp ).GetProtocol() == INetProtocol::NotValid, "Wrong HelpId!" );
|
||||||
aBuffer.appendAscii( INET_HID_SCHEME );
|
aBuffer.append( INET_HID_SCHEME );
|
||||||
aBuffer.append( aTmp.getStr() );
|
aBuffer.append( aTmp.getStr() );
|
||||||
return aBuffer.makeStringAndClear();
|
return aBuffer.makeStringAndClear();
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ namespace rptui
|
|||||||
if ( !sLabel.isEmpty() )
|
if ( !sLabel.isEmpty() )
|
||||||
{
|
{
|
||||||
OUStringBuffer aBuffer;
|
OUStringBuffer aBuffer;
|
||||||
aBuffer.appendAscii( "=" );
|
aBuffer.append( "=" );
|
||||||
aBuffer.append( sLabel );
|
aBuffer.append( sLabel );
|
||||||
sDataField = aBuffer.makeStringAndClear();
|
sDataField = aBuffer.makeStringAndClear();
|
||||||
bSet = false;
|
bSet = false;
|
||||||
|
Reference in New Issue
Block a user