loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: If06eb179be6dd00a14d8920e303af37b53e22bdc
This commit is contained in:
Stephan Bergmann 2015-08-31 08:03:28 +02:00
parent c42d216520
commit 7144ce742a
4 changed files with 10 additions and 10 deletions

View File

@ -539,9 +539,9 @@ void OComboBoxModel::loadData( bool _bForce )
qualifiedNameComponents( xMeta, m_aListSource, sCatalog, sSchema, sTable, eInDataManipulation );
OUStringBuffer aStatement;
aStatement.appendAscii( "SELECT DISTINCT " );
aStatement.append( "SELECT DISTINCT " );
aStatement.append ( quoteName( aQuote, aFieldName ) );
aStatement.appendAscii( " FROM " );
aStatement.append( " FROM " );
aStatement.append ( composeTableNameForSelect( xConnection, sCatalog, sSchema, sTable ) );
m_aListRowSet.setEscapeProcessing( false );

View File

@ -496,7 +496,7 @@ OUString ODatabaseForm::GetDataEncoded(bool _bURLEncoded,const Reference<XContro
if ( _bURLEncoded )
aResult.append('&');
else
aResult.appendAscii("\r\n");
aResult.append("\r\n");
}
}

View File

@ -423,7 +423,7 @@ namespace frm
const Reference< XDatabaseMetaData > xMeta( xConnection->getMetaData(), UNO_SET_THROW );
const OUString sQuoteChar = xMeta->getIdentifierQuoteString();
aStatement.appendAscii( "SELECT DISTINCT " );
aStatement.append( "SELECT DISTINCT " );
aStatement.append( sQuoteChar );
aStatement.append( sRealFieldName );
aStatement.append( sQuoteChar );
@ -431,13 +431,13 @@ namespace frm
// if the field had an alias in our form's statement, give it this alias in the new statement, too
if ( !sFieldName.isEmpty() && ( sFieldName != sRealFieldName ) )
{
aStatement.appendAscii(" AS ");
aStatement.append(" AS ");
aStatement.append( sQuoteChar );
aStatement.append( sFieldName );
aStatement.append( sQuoteChar );
}
aStatement.appendAscii( " FROM " );
aStatement.append( " FROM " );
OUString sCatalog, sSchema, sTable;
::dbtools::qualifiedNameComponents( xMeta, sTableName, sCatalog, sSchema, sTable, ::dbtools::eInDataManipulation );

View File

@ -115,9 +115,9 @@ namespace
OUStringBuffer sInfo;
lcl_appendInt32ToBuffer( rDate.Year, sInfo, 4 );
sInfo.appendAscii( "-" );
sInfo.append( "-" );
lcl_appendInt32ToBuffer( rDate.Month, sInfo, 2 );
sInfo.appendAscii( "-" );
sInfo.append( "-" );
lcl_appendInt32ToBuffer( rDate.Day, sInfo, 2 );
return sInfo.makeStringAndClear();
@ -167,9 +167,9 @@ namespace
OUStringBuffer sInfo;
lcl_appendInt32ToBuffer( rTime.Hours, sInfo, 2 );
sInfo.appendAscii( ":" );
sInfo.append( ":" );
lcl_appendInt32ToBuffer( rTime.Minutes, sInfo, 2 );
sInfo.appendAscii( ":" );
sInfo.append( ":" );
lcl_appendInt32ToBuffer( rTime.Seconds, sInfo, 2 );
if ( rTime.NanoSeconds != 0 )
{