summaryrefslogtreecommitdiff
path: root/dbaccess/source/core
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-10-31 17:40:29 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-11-02 10:50:52 +0100
commit806d18ae7b8c241fe90e49d3d370306769c50a10 (patch)
tree1f0c46e050999fba9ad20c9dbd05a5c522c91389 /dbaccess/source/core
parentfcee486849c2e5a07c0eef630beb427742f54d8e (diff)
optimisation: take ref to OUString instead of constructing temp object
Change-Id: I9dcb821cd71f89fa5b3d8274fd93facc1f43863f
Diffstat (limited to 'dbaccess/source/core')
-rw-r--r--dbaccess/source/core/api/definitioncolumn.cxx2
-rw-r--r--dbaccess/source/core/inc/definitioncolumn.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/definitioncolumn.cxx b/dbaccess/source/core/api/definitioncolumn.cxx
index 190da6017ae4..7be166698494 100644
--- a/dbaccess/source/core/api/definitioncolumn.cxx
+++ b/dbaccess/source/core/api/definitioncolumn.cxx
@@ -162,7 +162,7 @@ rtl::OUString OTableColumn::getImplementationName( ) throw (RuntimeException)
// =========================================================================
DBG_NAME( OQueryColumn );
-OQueryColumn::OQueryColumn( const Reference< XPropertySet >& _rxParserColumn, const Reference< XConnection >& _rxConnection,const ::rtl::OUString i_sLabel )
+OQueryColumn::OQueryColumn( const Reference< XPropertySet >& _rxParserColumn, const Reference< XConnection >& _rxConnection, const ::rtl::OUString &i_sLabel )
:OTableColumnDescriptor( false /* do not act as descriptor */ )
,m_sLabel(i_sLabel)
{
diff --git a/dbaccess/source/core/inc/definitioncolumn.hxx b/dbaccess/source/core/inc/definitioncolumn.hxx
index 6209710757d4..44d198cd431c 100644
--- a/dbaccess/source/core/inc/definitioncolumn.hxx
+++ b/dbaccess/source/core/inc/definitioncolumn.hxx
@@ -158,7 +158,7 @@ namespace dbaccess
OQueryColumn(
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _rxParserColumn,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
- const ::rtl::OUString i_sLabel
+ const ::rtl::OUString &i_sLabel
);
// XTypeProvider