summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:28 +0200
commit7144ce742a1c28efb248f99ad527423fe55977f0 (patch)
tree0e68cd6bfa7b64b040588f7ecef7a1ccdec2a2ab /forms
parentc42d21652000c28df16d67bd46cf3e0116099f3e (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: If06eb179be6dd00a14d8920e303af37b53e22bdc
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ComboBox.cxx4
-rw-r--r--forms/source/component/DatabaseForm.cxx2
-rw-r--r--forms/source/component/Filter.cxx6
-rw-r--r--forms/source/xforms/convert.cxx8
4 files changed, 10 insertions, 10 deletions
diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx
index c7dbe980490a..4897bb68c4fc 100644
--- a/forms/source/component/ComboBox.cxx
+++ b/forms/source/component/ComboBox.cxx
@@ -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 );
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 56d612101f66..819403c727ad 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -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");
}
}
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx
index d3246b9062db..bb1cb743a5ed 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -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 );
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx
index 0ca3e8089c8f..49eab9bc30c3 100644
--- a/forms/source/xforms/convert.cxx
+++ b/forms/source/xforms/convert.cxx
@@ -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 )
{