[Libreoffice-commits] core.git: sw/source

Eike Rathke erack at redhat.com
Wed Oct 8 11:57:49 PDT 2014


 sw/source/ui/misc/linenum.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6bc7b0748741d58724310e8fd09d31a5557aa031
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Oct 8 20:57:15 2014 +0200

    pass const OUString&, Clang loplugin:passstuffbyref
    
    Change-Id: I7fdd4541ac61729878149bd47080e9ffbd43bc98

diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index c71ae9e..b28b2a7 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())


More information about the Libreoffice-commits mailing list