summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/nameuno.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:58:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commitc6ef03093eb76274851744ecf463a373a814a47e (patch)
tree1d14ef52dbfd0ab2ee6b6cb9cbdb2f56fd93b3d0 /sc/source/ui/unoobj/nameuno.cxx
parent2eb5a59a220d4cd2167fb59349ab13ca7663b78d (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I2707d16e6dd7bc5617094963933fced147a496e8
Diffstat (limited to 'sc/source/ui/unoobj/nameuno.cxx')
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index 5c60a5b2d496..df1c88d67842 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -81,7 +81,7 @@ static bool lcl_UserVisibleName(const ScRangeData& rData)
return !rData.HasType(ScRangeData::Type::Database);
}
-ScNamedRangeObj::ScNamedRangeObj( rtl::Reference< ScNamedRangesObj > xParent, ScDocShell* pDocSh, const OUString& rNm, Reference<container::XNamed> xSheet):
+ScNamedRangeObj::ScNamedRangeObj( rtl::Reference< ScNamedRangesObj > const & xParent, ScDocShell* pDocSh, const OUString& rNm, Reference<container::XNamed> const & xSheet):
mxParent(xParent),
pDocShell( pDocSh ),
aName( rNm ),
@@ -867,7 +867,7 @@ SCTAB ScGlobalNamedRangesObj::GetTab_Impl()
return -1;
}
-ScLocalNamedRangesObj::ScLocalNamedRangesObj( ScDocShell* pDocSh, uno::Reference<container::XNamed> xSheet )
+ScLocalNamedRangesObj::ScLocalNamedRangesObj( ScDocShell* pDocSh, uno::Reference<container::XNamed> const & xSheet )
: ScNamedRangesObj(pDocSh),
mxSheet(xSheet)
{