summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-16 18:16:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-18 15:30:09 +0200
commit7ef97b93d7fbf41bb4d9b01f736c28cb382603c9 (patch)
tree0b71f5670b02fd013ae4692fce809421841d203f /connectivity
parent3f4012152db815f897fbb39a618224aab53486d3 (diff)
loplugin:passstuffbyref
Change-Id: Ie10757b8026e0bdf8be40f41bb04bb02334241f3
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/macab/MacabDriver.hxx2
-rw-r--r--connectivity/source/drivers/macab/MacabRecords.cxx2
-rw-r--r--connectivity/source/drivers/macab/MacabRecords.hxx2
-rw-r--r--connectivity/source/drivers/macab/MacabTable.hxx4
4 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/macab/MacabDriver.hxx b/connectivity/source/drivers/macab/MacabDriver.hxx
index f50f7562cc75..eeedac4e60a4 100644
--- a/connectivity/source/drivers/macab/MacabDriver.hxx
+++ b/connectivity/source/drivers/macab/MacabDriver.hxx
@@ -124,7 +124,7 @@ namespace connectivity
static OUString getImplementationName_Static( ) throw(::com::sun::star::uno::RuntimeException);
static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static( ) throw (::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const &
getComponentContext() const { return m_xContext; }
/** returns the path of our configuration settings
diff --git a/connectivity/source/drivers/macab/MacabRecords.cxx b/connectivity/source/drivers/macab/MacabRecords.cxx
index caf1db78bc9e..9ca9bca94d3e 100644
--- a/connectivity/source/drivers/macab/MacabRecords.cxx
+++ b/connectivity/source/drivers/macab/MacabRecords.cxx
@@ -1196,7 +1196,7 @@ void MacabRecords::setName(const OUString& _sName)
}
-OUString MacabRecords::getName() const
+OUString const & MacabRecords::getName() const
{
return m_sName;
}
diff --git a/connectivity/source/drivers/macab/MacabRecords.hxx b/connectivity/source/drivers/macab/MacabRecords.hxx
index 615c8ba313c1..11e5bcc5c823 100644
--- a/connectivity/source/drivers/macab/MacabRecords.hxx
+++ b/connectivity/source/drivers/macab/MacabRecords.hxx
@@ -88,7 +88,7 @@ namespace connectivity
MacabHeader *getHeader() const;
void setName(const OUString& _sName);
- OUString getName() const;
+ OUString const & getName() const;
MacabRecord *insertRecord(MacabRecord *_newRecord, const sal_Int32 _location);
void insertRecord(MacabRecord *_newRecord);
diff --git a/connectivity/source/drivers/macab/MacabTable.hxx b/connectivity/source/drivers/macab/MacabTable.hxx
index 6c90d78c61e3..93f294162436 100644
--- a/connectivity/source/drivers/macab/MacabTable.hxx
+++ b/connectivity/source/drivers/macab/MacabTable.hxx
@@ -49,8 +49,8 @@ namespace connectivity
virtual void refreshColumns() override;
- OUString getTableName() const { return m_Name; }
- OUString getSchema() const { return m_SchemaName; }
+ OUString const & getTableName() const { return m_Name; }
+ OUString const & getSchema() const { return m_SchemaName; }
};
}
}