From 6bc7b0748741d58724310e8fd09d31a5557aa031 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 8 Oct 2014 20:57:15 +0200 Subject: pass const OUString&, Clang loplugin:passstuffbyref Change-Id: I7fdd4541ac61729878149bd47080e9ffbd43bc98 --- sw/source/ui/misc/linenum.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source') 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 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 xStyleSheet = lcl_getDocStyleSheet(rName, pSh); if(!xStyleSheet.is()) -- cgit