summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
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 'dbaccess')
-rw-r--r--dbaccess/source/core/api/KeySet.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index bce833151850..2e02ef555533 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -750,7 +750,7 @@ void SAL_CALL OKeySet::insertRow( const ORowSetRow& _rInsertRow,const connectivi
OUStringBuffer aSql( "INSERT INTO " + m_aComposedTableName + " ( ");
// set values and column names
- OUStringBuffer aValues(OUString(" VALUES ( "));
+ OUStringBuffer aValues(" VALUES ( ");
static OUString aPara("?,");
OUString aQuote = getIdentifierQuoteString();
static OUString aComma(",");
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index b0c984ee86ae..4d8bc1737ce1 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2880,7 +2880,7 @@ OUString OQueryDesignView::getStatement()
aCriteriaListStr = aTmp;
}
// ----------------- construct statement ----------------------
- OUStringBuffer aSqlCmd(OUString("SELECT "));
+ OUStringBuffer aSqlCmd("SELECT ");
if(rController.isDistinct())
aSqlCmd.append(" DISTINCT ");
aSqlCmd.append(aFieldListStr);