summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:51 +0200
commit8106bfcdf3ae8409c24a7c40672bb244037f923e (patch)
treea05d3c1d5d144c0bf3c4cdf4ca01deb4c4046a3a
parent8fa038d895d67672131ad7ddb0792c3b2900b47d (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Icbef0736acd5143200478410d65cfdd2ce10eeee
-rw-r--r--dbaccess/source/core/api/SingleSelectQueryComposer.cxx4
-rw-r--r--dbaccess/source/core/api/viewcontainer.cxx4
-rw-r--r--dbaccess/source/core/dataaccess/databaseregistrations.cxx4
-rw-r--r--dbaccess/source/core/inc/composertools.hxx6
-rw-r--r--dbaccess/source/core/misc/sdbcoretools.cxx2
-rw-r--r--dbaccess/source/ext/macromigration/macromigrationpages.cxx2
-rw-r--r--dbaccess/source/ext/macromigration/migrationengine.cxx2
-rw-r--r--dbaccess/source/ext/macromigration/migrationlog.cxx4
-rw-r--r--dbaccess/source/ui/misc/WCopyTable.cxx8
-rw-r--r--dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx2
-rw-r--r--dbaccess/source/ui/misc/defaultobjectnamecheck.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx4
12 files changed, 22 insertions, 22 deletions
diff --git a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
index c2a18e142569..b1cddd865c5a 100644
--- a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
+++ b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
@@ -345,7 +345,7 @@ void SAL_CALL OSingleSelectQueryComposer::setCommand( const OUString& Command,sa
case CommandType::TABLE:
if ( m_xConnectionTables->hasByName(Command) )
{
- sSQL.appendAscii("SELECT * FROM ");
+ sSQL.append("SELECT * FROM ");
Reference< XPropertySet > xTable;
try
{
@@ -1655,7 +1655,7 @@ void OSingleSelectQueryComposer::setConditionByColumn( const Reference< XPropert
{
aSQL.append( "\'" );
}
- aSQL.appendAscii( "0x" );
+ aSQL.append( "0x" );
const sal_Int8* pBegin = aSeq.getConstArray();
const sal_Int8* pEnd = pBegin + aSeq.getLength();
for(;pBegin != pEnd;++pBegin)
diff --git a/dbaccess/source/core/api/viewcontainer.cxx b/dbaccess/source/core/api/viewcontainer.cxx
index bc1c8f053837..f17f8d7df909 100644
--- a/dbaccess/source/core/api/viewcontainer.cxx
+++ b/dbaccess/source/core/api/viewcontainer.cxx
@@ -144,9 +144,9 @@ ObjectType OViewContainer::appendObject( const OUString& _rForName, const Refere
descriptor->getPropertyValue(PROPERTY_COMMAND) >>= sCommand;
OUStringBuffer aSQL;
- aSQL.appendAscii( "CREATE VIEW " );
+ aSQL.append( "CREATE VIEW " );
aSQL.append ( sComposedName );
- aSQL.appendAscii( " AS " );
+ aSQL.append( " AS " );
aSQL.append ( sCommand );
Reference<XConnection> xCon = m_xConnection;
diff --git a/dbaccess/source/core/dataaccess/databaseregistrations.cxx b/dbaccess/source/core/dataaccess/databaseregistrations.cxx
index 97740a7b3320..c109baa3e67d 100644
--- a/dbaccess/source/core/dataaccess/databaseregistrations.cxx
+++ b/dbaccess/source/core/dataaccess/databaseregistrations.cxx
@@ -191,7 +191,7 @@ namespace dbaccess
OUString sNewNodeName;
{
OUStringBuffer aNewNodeName;
- aNewNodeName.appendAscii( "org.openoffice." );
+ aNewNodeName.append( "org.openoffice." );
aNewNodeName.append( _rName );
// make unique
@@ -201,7 +201,7 @@ namespace dbaccess
while ( m_aConfigurationRoot.hasByName( sNewNodeName ) )
{
aNewNodeName = aReset;
- aNewNodeName.appendAscii( " " );
+ aNewNodeName.append( " " );
aNewNodeName.append( i );
sNewNodeName = aNewNodeName.makeStringAndClear();
}
diff --git a/dbaccess/source/core/inc/composertools.hxx b/dbaccess/source/core/inc/composertools.hxx
index d5b98ffbaaee..2bb01a5fca4f 100644
--- a/dbaccess/source/core/inc/composertools.hxx
+++ b/dbaccess/source/core/inc/composertools.hxx
@@ -98,9 +98,9 @@ namespace dbaccess
{
m_aBuffer.insert( 0, (sal_Unicode)' ' );
m_aBuffer.insert( 0, (sal_Unicode)'(' );
- m_aBuffer.appendAscii( " ) AND ( " );
+ m_aBuffer.append( " ) AND ( " );
m_aBuffer.append( lhs );
- m_aBuffer.appendAscii( " )" );
+ m_aBuffer.append( " )" );
}
};
@@ -109,7 +109,7 @@ namespace dbaccess
{
virtual void appendNonEmptyToNonEmpty( const OUString& lhs ) SAL_OVERRIDE
{
- m_aBuffer.appendAscii( ", " );
+ m_aBuffer.append( ", " );
m_aBuffer.append( lhs );
}
};
diff --git a/dbaccess/source/core/misc/sdbcoretools.cxx b/dbaccess/source/core/misc/sdbcoretools.cxx
index 5a14d903f9e2..c97a0a609c04 100644
--- a/dbaccess/source/core/misc/sdbcoretools.cxx
+++ b/dbaccess/source/core/misc/sdbcoretools.cxx
@@ -100,7 +100,7 @@ namespace dbaccess
OUStringBuffer aBuffer;
aBuffer.append( _rError.getValueTypeName() );
- aBuffer.appendAscii( ":\n" );
+ aBuffer.append( ":\n" );
aBuffer.append( aExcept.Message );
sDisplayMessage = aBuffer.makeStringAndClear();
diff --git a/dbaccess/source/ext/macromigration/macromigrationpages.cxx b/dbaccess/source/ext/macromigration/macromigrationpages.cxx
index 6d101ca3382a..d61dc10646d1 100644
--- a/dbaccess/source/ext/macromigration/macromigrationpages.cxx
+++ b/dbaccess/source/ext/macromigration/macromigrationpages.cxx
@@ -142,7 +142,7 @@ namespace dbmm
OSL_ENSURE( aURLParser.GetProtocol() != INetProtocol::NotValid, "SaveDBDocPage::initializePage: illegal document URL!" );
OUStringBuffer aBaseName( aURLParser.getBase() );
- aBaseName.appendAscii( ".backup" );
+ aBaseName.append( ".backup" );
aURLParser.setBase( aBaseName.makeStringAndClear() );
m_pLocationController->setURL( aURLParser.GetMainURL( INetURLObject::NO_DECODE ) );
diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx
index bbd828749693..3ea87673a367 100644
--- a/dbaccess/source/ext/macromigration/migrationengine.cxx
+++ b/dbaccess/source/ext/macromigration/migrationengine.cxx
@@ -993,7 +993,7 @@ namespace dbmm
{
const OUString sHierarhicalBase(
_rContainerLoc.isEmpty() ? OUString() :
- OUStringBuffer( _rContainerLoc ).appendAscii( "/" ).makeStringAndClear());
+ OUStringBuffer( _rContainerLoc ).append( "/" ).makeStringAndClear());
Sequence< OUString > aElementNames( _rxContainer->getElementNames() );
for ( const OUString* elementName = aElementNames.getConstArray();
diff --git a/dbaccess/source/ext/macromigration/migrationlog.cxx b/dbaccess/source/ext/macromigration/migrationlog.cxx
index e6699eea74c3..feee88118280 100644
--- a/dbaccess/source/ext/macromigration/migrationlog.cxx
+++ b/dbaccess/source/ext/macromigration/migrationlog.cxx
@@ -346,9 +346,9 @@ namespace dbmm
void lcl_describeErrors( OUStringBuffer& _rBuffer, const ErrorLog& _rErrors, const sal_uInt16 _nHeadingResId )
{
- _rBuffer.appendAscii( "=== " );
+ _rBuffer.append( "=== " );
_rBuffer.append ( OUString( MacroMigrationResId( _nHeadingResId ) ) );
- _rBuffer.appendAscii( " ===\n" );
+ _rBuffer.append( " ===\n" );
OUString sException( MacroMigrationResId( STR_EXCEPTION ) );
diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx
index 2aca86e1c8d6..1baf3a9b1fab 100644
--- a/dbaccess/source/ui/misc/WCopyTable.cxx
+++ b/dbaccess/source/ui/misc/WCopyTable.cxx
@@ -223,7 +223,7 @@ OUString ObjectCopySource::getSelectStatement() const
else
{ // table
OUStringBuffer aSQL;
- aSQL.appendAscii( "SELECT " );
+ aSQL.append( "SELECT " );
// we need to create the sql stmt with column names
// otherwise it is possible that names don't match
@@ -237,9 +237,9 @@ OUString ObjectCopySource::getSelectStatement() const
aSQL.append( ::dbtools::quoteName( sQuote, *pColumnName++ ) );
if ( pColumnName == pEnd )
- aSQL.appendAscii( " " );
+ aSQL.append( " " );
else
- aSQL.appendAscii( ", " );
+ aSQL.append( ", " );
}
aSQL.append( "FROM " + ::dbtools::composeTableNameForSelect( m_xConnection, m_xObject ) );
@@ -387,7 +387,7 @@ OFieldDescription* NamedTableCopySource::createFieldDescription( const OUString&
OUString NamedTableCopySource::getSelectStatement() const
{
OUStringBuffer aSQL;
- aSQL.appendAscii( "SELECT * FROM " );
+ aSQL.append( "SELECT * FROM " );
aSQL.append( ::dbtools::composeTableNameForSelect( m_xConnection, m_sTableCatalog, m_sTableSchema, m_sTableBareName ) );
diff --git a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
index 4665a9a882af..bf48cdaa0aa1 100644
--- a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
+++ b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
@@ -541,7 +541,7 @@ namespace dbaui
if ( xTitle.is() )
{
sTitle.append( xTitle->getTitle() );
- sTitle.appendAscii(" : ");
+ sTitle.append(" : ");
}
sTitle.append( getPrivateTitle() );
return sTitle.makeStringAndClear();
diff --git a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx
index 164ef07a7640..a6fcd562f4cf 100644
--- a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx
+++ b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx
@@ -106,7 +106,7 @@ namespace dbaui
if ( !m_pImpl->sRelativeRoot.isEmpty() )
{
aCompleteName.append( m_pImpl->sRelativeRoot );
- aCompleteName.appendAscii( "/" );
+ aCompleteName.append( "/" );
}
aCompleteName.append( _rObjectName );
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 47550a9d5674..7f1932ce502e 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -686,9 +686,9 @@ namespace
{
OSL_ENSURE(!pEntryField->GetFunction().isEmpty(),"Function name must not be empty! ;-(");
OUStringBuffer aTmpStr2( pEntryField->GetFunction());
- aTmpStr2.appendAscii("(");
+ aTmpStr2.append("(");
aTmpStr2.append(aTmpStr.makeStringAndClear());
- aTmpStr2.appendAscii(")");
+ aTmpStr2.append(")");
aTmpStr = aTmpStr2;
}