diff options
author | Eike Rathke <erack@redhat.com> | 2014-10-08 20:57:15 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-10-08 20:57:15 +0200 |
commit | 6bc7b0748741d58724310e8fd09d31a5557aa031 (patch) | |
tree | a1b15d322aa7924f98b890719ab05f142a95f25d /sw/source | |
parent | ea79176e31c5b05fea25ff7b5e10fafde37642d9 (diff) |
pass const OUString&, Clang loplugin:passstuffbyref
Change-Id: I7fdd4541ac61729878149bd47080e9ffbd43bc98
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/misc/linenum.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx index c71ae9ece1d1..b28b2a754bfb 100644 --- a/sw/source/ui/misc/linenum.cxx +++ b/sw/source/ui/misc/linenum.cxx @@ -46,7 +46,7 @@ static rtl::Reference<SwDocStyleSheet> lcl_getDocStyleSheet(const OUString& rNam return new SwDocStyleSheet(*(SwDocStyleSheet*)pStyle); } -static void lcl_setLineNumbering(OUString rName, SwWrtShell* pSh, bool bLineNumber) +static void lcl_setLineNumbering(const OUString& rName, SwWrtShell* pSh, bool bLineNumber) { rtl::Reference<SwDocStyleSheet> xStyleSheet = lcl_getDocStyleSheet(rName, pSh); if(!xStyleSheet.is()) |