summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-13 11:24:35 +0200
committerNoel Grandin <noel@peralex.com>2013-12-17 11:49:05 +0200
commit2ac31b06ae4895fe5d9be51403774a96b89919af (patch)
treeb9500b59350dcb650d4e05283e4e9a835b879b91 /connectivity
parent8548abbac5139569818516ca198c8086f4d1fd1f (diff)
Unnecessary use of OUString constructor inside OUStringBuffer constructor
Convert code like: OUStringBuffer sVal(OUString("0x")); to: OUStringBuffer sVal("0x"); Change-Id: Idc5a3f6a8bf1dc33f93c2b488f866c8ea58d582a
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/FValue.cxx2
-rw-r--r--connectivity/source/commontools/TIndexes.cxx2
-rw-r--r--connectivity/source/commontools/dbtools2.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index f39299b1b06a..4d176be585f1 100644
--- a/connectivity/source/commontools/FValue.cxx
+++ b/connectivity/source/commontools/FValue.cxx
@@ -1011,7 +1011,7 @@ OUString ORowSetValue::getString( ) const
case DataType::VARBINARY:
case DataType::LONGVARBINARY:
{
- OUStringBuffer sVal(OUString("0x"));
+ OUStringBuffer sVal("0x");
Sequence<sal_Int8> aSeq(getSequence());
const sal_Int8* pBegin = aSeq.getConstArray();
const sal_Int8* pEnd = pBegin + aSeq.getLength();
diff --git a/connectivity/source/commontools/TIndexes.cxx b/connectivity/source/commontools/TIndexes.cxx
index f9aa564b07a7..41e8652cbd9a 100644
--- a/connectivity/source/commontools/TIndexes.cxx
+++ b/connectivity/source/commontools/TIndexes.cxx
@@ -136,7 +136,7 @@ sdbcx::ObjectType OIndexesHelper::appendObject( const OUString& _rForName, const
else
{
::dbtools::OPropertyMap& rPropMap = OMetaConnection::getPropMap();
- OUStringBuffer aSql( OUString("CREATE "));
+ OUStringBuffer aSql( "CREATE " );
OUString aQuote = m_pTable->getMetaData()->getIdentifierQuoteString( );
OUString aDot( "." );
diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx
index 59f73496107f..56fd92d1a980 100644
--- a/connectivity/source/commontools/dbtools2.cxx
+++ b/connectivity/source/commontools/dbtools2.cxx
@@ -206,7 +206,7 @@ OUString createStandardColumnPart(const Reference< XPropertySet >& xColProp,cons
OUString createStandardCreateStatement(const Reference< XPropertySet >& descriptor,const Reference< XConnection>& _xConnection,ISQLStatementHelper* _pHelper,const OUString& _sCreatePattern)
{
- OUStringBuffer aSql(OUString("CREATE TABLE "));
+ OUStringBuffer aSql("CREATE TABLE ");
OUString sCatalog,sSchema,sTable,sComposedName;
Reference<XDatabaseMetaData> xMetaData = _xConnection->getMetaData();