summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 12:28:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 18:19:09 +0200
commit4dbe4a9313d9844c10f71b29a77218d31bc6f3b3 (patch)
treecaf0ca4ceb3cbbb2aaf1255cebbcb8b38d6d45c5 /include/sfx2
parent9e1aee666fa48b768c829bbc707f47a98250df1e (diff)
loplugin:passstuffbyref
Change-Id: I4f01eb3842ef198f02af274f54afb2760c820a4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120655 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/docfile.hxx2
-rw-r--r--include/sfx2/sidebar/Panel.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx
index 83bcb91c5812..55b31202bcab 100644
--- a/include/sfx2/docfile.hxx
+++ b/include/sfx2/docfile.hxx
@@ -101,7 +101,7 @@ public:
void AddToCheckEditableWorkerList();
void SetWorkerReloadEvent(ImplSVEvent* pEvent);
ImplSVEvent* GetWorkerReloadEvent() const;
- std::shared_ptr<std::recursive_mutex> GetCheckEditableMutex() const;
+ const std::shared_ptr<std::recursive_mutex>& GetCheckEditableMutex() const;
void CancelCheckEditableEntry(bool bRemoveEvent = true);
void UseInteractionHandler( bool );
diff --git a/include/sfx2/sidebar/Panel.hxx b/include/sfx2/sidebar/Panel.hxx
index 485063f2152d..7ea94a49960a 100644
--- a/include/sfx2/sidebar/Panel.hxx
+++ b/include/sfx2/sidebar/Panel.hxx
@@ -69,7 +69,7 @@ public:
{
return mxPanelComponent;
}
- css::uno::Reference<css::awt::XWindow> GetElementParentWindow();
+ const css::uno::Reference<css::awt::XWindow>& GetElementParentWindow();
css::uno::Reference<css::awt::XWindow> GetElementWindow();
void SetExpanded(const bool bIsExpanded);
bool IsExpanded() const { return mbIsExpanded; }