summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-18 09:22:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-27 06:48:25 +0000
commit508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch)
treed1c8626818cbf26a699875ae2d82f751a1657e92 /extensions
parent9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff)
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c Reviewed-on: https://gerrit.libreoffice.org/27317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/bibconfig.cxx2
-rw-r--r--extensions/source/bibliography/bibconfig.hxx2
-rw-r--r--extensions/source/bibliography/bibload.cxx10
-rw-r--r--extensions/source/bibliography/datman.cxx4
-rw-r--r--extensions/source/bibliography/datman.hxx4
-rw-r--r--extensions/source/propctrlr/composeduiupdate.cxx2
-rw-r--r--extensions/source/propctrlr/composeduiupdate.hxx2
7 files changed, 13 insertions, 13 deletions
diff --git a/extensions/source/bibliography/bibconfig.cxx b/extensions/source/bibliography/bibconfig.cxx
index 9b59d388ac4d..34fd9a2b6bc9 100644
--- a/extensions/source/bibliography/bibconfig.cxx
+++ b/extensions/source/bibliography/bibconfig.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star::sdb;
const char cDataSourceHistory[] = "DataSourceHistory";
-Sequence<OUString> BibConfig::GetPropertyNames()
+Sequence<OUString> const & BibConfig::GetPropertyNames()
{
static Sequence<OUString> aNames;
if(!aNames.getLength())
diff --git a/extensions/source/bibliography/bibconfig.hxx b/extensions/source/bibliography/bibconfig.hxx
index c260f8efcbd0..f4dba759f2e0 100644
--- a/extensions/source/bibliography/bibconfig.hxx
+++ b/extensions/source/bibliography/bibconfig.hxx
@@ -101,7 +101,7 @@ class BibConfig : public utl::ConfigItem
OUString aColumnDefaults[COLUMN_COUNT];
- static css::uno::Sequence<OUString> GetPropertyNames();
+ static css::uno::Sequence<OUString> const & GetPropertyNames();
virtual void ImplCommit() override;
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index 3bff83b5ea0a..3d9d4756afc2 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -88,9 +88,9 @@ private:
const Reference< XLoadEventListener > & aListener);
BibDataManager* GetDataManager()const;
- Reference< XNameAccess > GetDataColumns() const;
- Reference< XResultSet > GetDataCursor() const;
- Reference< sdb::XColumn > GetIdentifierColumn() const;
+ Reference< XNameAccess > const & GetDataColumns() const;
+ Reference< XResultSet > const & GetDataCursor() const;
+ Reference< sdb::XColumn > GetIdentifierColumn() const;
public:
BibliographyLoader();
@@ -336,7 +336,7 @@ BibDataManager* BibliographyLoader::GetDataManager()const
return m_pDatMan;
}
-Reference< XNameAccess > BibliographyLoader::GetDataColumns() const
+Reference< XNameAccess > const & BibliographyLoader::GetDataColumns() const
{
if (!m_xColumns.is())
{
@@ -406,7 +406,7 @@ Reference< sdb::XColumn > BibliographyLoader::GetIdentifierColumn() const
return xReturn;
}
-Reference< XResultSet > BibliographyLoader::GetDataCursor() const
+Reference< XResultSet > const & BibliographyLoader::GetDataCursor() const
{
if (!m_xCursor.is())
GetDataColumns();
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index 930a11543e13..8ce8ba0f6f37 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -744,7 +744,7 @@ Reference< awt::XControlModel > BibDataManager::updateGridModel()
return updateGridModel( m_xForm );
}
-Reference< awt::XControlModel > BibDataManager::updateGridModel(const Reference< XForm > & xDbForm)
+Reference< awt::XControlModel > const & BibDataManager::updateGridModel(const Reference< XForm > & xDbForm)
{
try
{
@@ -1595,7 +1595,7 @@ void BibDataManager::SetToolbar(BibToolBar* pSet)
pToolbar->SetDatMan(*this);
}
-uno::Reference< form::runtime::XFormController > BibDataManager::GetFormController()
+uno::Reference< form::runtime::XFormController > const & BibDataManager::GetFormController()
{
if(!m_xFormCtrl.is())
{
diff --git a/extensions/source/bibliography/datman.hxx b/extensions/source/bibliography/datman.hxx
index 5bda57645fa2..19fd5506bec9 100644
--- a/extensions/source/bibliography/datman.hxx
+++ b/extensions/source/bibliography/datman.hxx
@@ -106,7 +106,7 @@ protected:
void SetMeAsUidListener();
void RemoveMeAsUidListener();
- css::uno::Reference< css::awt::XControlModel >
+ css::uno::Reference< css::awt::XControlModel > const &
updateGridModel(const css::uno::Reference< css::form::XForm > & xDbForm);
static css::uno::Reference< css::awt::XControlModel >
createGridModel( const OUString& rName );
@@ -172,7 +172,7 @@ public:
const OUString& GetIdentifierMapping();
void ResetIdentifierMapping() {sIdentifierMapping.clear();}
- css::uno::Reference< css::form::runtime::XFormController > GetFormController();
+ css::uno::Reference< css::form::runtime::XFormController > const & GetFormController();
void RegisterInterceptor( ::bib::BibBeamer* pBibBeamer);
bool HasActiveConnection();
diff --git a/extensions/source/propctrlr/composeduiupdate.cxx b/extensions/source/propctrlr/composeduiupdate.cxx
index 398dea7129d6..8295cdd3bd76 100644
--- a/extensions/source/propctrlr/composeduiupdate.cxx
+++ b/extensions/source/propctrlr/composeduiupdate.cxx
@@ -746,7 +746,7 @@ namespace pcr
}
- Reference< XObjectInspectorUI > ComposedPropertyUIUpdate::getDelegatorUI() const
+ Reference< XObjectInspectorUI > const & ComposedPropertyUIUpdate::getDelegatorUI() const
{
impl_checkDisposed();
return m_xDelegatorUI;
diff --git a/extensions/source/propctrlr/composeduiupdate.hxx b/extensions/source/propctrlr/composeduiupdate.hxx
index 30011afe0bcd..bd2539f56ada 100644
--- a/extensions/source/propctrlr/composeduiupdate.hxx
+++ b/extensions/source/propctrlr/composeduiupdate.hxx
@@ -89,7 +89,7 @@ namespace pcr
/** returns the delegator UI
@throw css::lang::DisposedException
*/
- css::uno::Reference< css::inspection::XObjectInspectorUI > getDelegatorUI() const;
+ css::uno::Reference< css::inspection::XObjectInspectorUI > const & getDelegatorUI() const;
/** returns a ->XObjectInspectorUI instance belonging to a given property handler