summaryrefslogtreecommitdiff
path: root/xmloff/source/style
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:11 +0200
commit38d0db29bb9f51a4e09893782f0f37d76d557305 (patch)
tree485dd1468adaf780ac2bbd8257c24030e0b8690b /xmloff/source/style
parent1b70ed18bd2ddbbd7b8d7512f0bed50f294e5fed (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Ifb6cc6d604d1a2b87491f2e455e65c94a5431095
Diffstat (limited to 'xmloff/source/style')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx8
-rw-r--r--xmloff/source/style/xmlnumfi.cxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 767c7eb47a06..c52a82d158d2 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -759,15 +759,15 @@ void SvXMLNumFmtExport::WriteMapElement_Impl( sal_Int32 nOp, double fLimit,
// style namespace
OUStringBuffer aCondStr(20);
- aCondStr.appendAscii( "value()" ); //! define constant
+ aCondStr.append( "value()" ); //! define constant
switch ( nOp )
{
case NUMBERFORMAT_OP_EQ: aCondStr.append( '=' ); break;
- case NUMBERFORMAT_OP_NE: aCondStr.appendAscii( "!=" ); break;
+ case NUMBERFORMAT_OP_NE: aCondStr.append( "!=" ); break;
case NUMBERFORMAT_OP_LT: aCondStr.append( '<' ); break;
- case NUMBERFORMAT_OP_LE: aCondStr.appendAscii( "<=" ); break;
+ case NUMBERFORMAT_OP_LE: aCondStr.append( "<=" ); break;
case NUMBERFORMAT_OP_GT: aCondStr.append( '>' ); break;
- case NUMBERFORMAT_OP_GE: aCondStr.appendAscii( ">=" ); break;
+ case NUMBERFORMAT_OP_GE: aCondStr.append( ">=" ); break;
default:
OSL_FAIL("unknown operator");
}
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index 12ea77d7ae1f..f7ffadf4c63e 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -1603,7 +1603,7 @@ sal_Int32 SvXMLNumFormatContext::CreateAndInsert(SvNumberFormatter* pFormatter)
{
// insert empty format as empty string (with quotes)
// #93901# this check has to be done before inserting the conditions
- aFormatCode.appendAscii("\"\""); // ""
+ aFormatCode.append("\"\""); // ""
}
aFormatCode.insert( 0, aConditions.makeStringAndClear() );
@@ -1964,7 +1964,7 @@ void SvXMLNumFormatContext::AddCurrency( const OUString& rContent, LanguageType
}
if (!bAutomatic)
- aFormatCode.appendAscii( "[$" ); // intro for "new" currency symbols
+ aFormatCode.append( "[$" ); // intro for "new" currency symbols
aFormatCode.append( aSymbol );
@@ -2179,7 +2179,7 @@ void SvXMLNumFormatContext::UpdateCalendar( const OUString& rNewCalendar )
sCalendar = rNewCalendar;
if ( !sCalendar.isEmpty() )
{
- aFormatCode.appendAscii( "[~" ); // intro for calendar code
+ aFormatCode.append( "[~" ); // intro for calendar code
aFormatCode.append( sCalendar );
aFormatCode.append( ']' ); // end of "new" currency symbolcalendar code
}