summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-09-24 13:18:39 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-09-24 17:26:38 +0200
commitfe0f1dba1369f5d9f382ee3432833e22fe0da442 (patch)
tree01a8f9b9a14c259835b82e87a1d1499d2690b820
parent384f37c0624784dea32dabb813aba937430b22be (diff)
Use a ref for arg of DirectSQLDialog::display
Change-Id: Ia30866edb5a243c09af3256bd963cafa9e2335ba Reviewed-on: https://gerrit.libreoffice.org/42705 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--dbaccess/source/ui/dlg/directsql.cxx2
-rw-r--r--dbaccess/source/ui/inc/directsql.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/directsql.cxx b/dbaccess/source/ui/dlg/directsql.cxx
index 5b109fedf23e..ed2f7c7dae5c 100644
--- a/dbaccess/source/ui/dlg/directsql.cxx
+++ b/dbaccess/source/ui/dlg/directsql.cxx
@@ -247,7 +247,7 @@ namespace dbaui
addStatusText(sStatus);
}
- void DirectSQLDialog::display(css::uno::Reference< css::sdbc::XResultSet > xRS)
+ void DirectSQLDialog::display(const css::uno::Reference< css::sdbc::XResultSet >& xRS)
{
// get a handle for the rows
css::uno::Reference< css::sdbc::XRow > xRow( xRS, css::uno::UNO_QUERY );
diff --git a/dbaccess/source/ui/inc/directsql.hxx b/dbaccess/source/ui/inc/directsql.hxx
index 7a48d4d58b12..5e5562f2a1f4 100644
--- a/dbaccess/source/ui/inc/directsql.hxx
+++ b/dbaccess/source/ui/inc/directsql.hxx
@@ -107,7 +107,7 @@ namespace dbaui
void addOutputText(const OUString& _rMessage);
/// displays resultset
- void display(css::uno::Reference< css::sdbc::XResultSet > xRS);
+ void display(const css::uno::Reference< css::sdbc::XResultSet >& xRS);
#ifdef DBG_UTIL
const sal_Char* impl_CheckInvariants() const;