summaryrefslogtreecommitdiff
path: root/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 /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 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx2
-rw-r--r--sfx2/source/sidebar/Panel.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index c8d1ab4bcc63..4e21ee41d1c6 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -4506,7 +4506,7 @@ bool SfxMedium::IsInCheckIn( ) const
}
// should only be called on main thread
-std::shared_ptr<std::recursive_mutex> SfxMedium::GetCheckEditableMutex() const
+const std::shared_ptr<std::recursive_mutex>& SfxMedium::GetCheckEditableMutex() const
{
return pImpl->m_pCheckEditableWorkerMutex;
}
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 789f6000a82b..a18f1879b898 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -227,7 +227,7 @@ Reference<awt::XWindow> Panel::GetElementWindow()
return nullptr;
}
-Reference<awt::XWindow> Panel::GetElementParentWindow()
+const Reference<awt::XWindow>& Panel::GetElementParentWindow()
{
if (!mxXWindow)
{