summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-10-08 20:51:44 +0200
committerEike Rathke <erack@redhat.com>2014-10-08 20:51:44 +0200
commitea79176e31c5b05fea25ff7b5e10fafde37642d9 (patch)
tree082b7a5560586f9c62080ef3a98b007b4fc8bde7
parentfaea61ed3d11678c698e9679fb44b0a81a07cacd (diff)
pass const OUString&, Clang loplugin:passstuffbyref
Change-Id: Ia3bf8a59c38b32a9ed24d21432f95e7141d72072
-rw-r--r--sw/source/ui/misc/linenum.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index 082862548868..c71ae9ece1d1 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -35,7 +35,7 @@
#include <IDocumentStylePoolAccess.hxx>
-static rtl::Reference<SwDocStyleSheet> lcl_getDocStyleSheet(OUString rName, SwWrtShell *pSh)
+static rtl::Reference<SwDocStyleSheet> lcl_getDocStyleSheet(const OUString& rName, SwWrtShell *pSh)
{
sal_uInt16 nFamily = SFX_STYLE_FAMILY_PARA;
SfxStyleSheetBasePool* mpBase = pSh->GetView().GetDocShell()->GetStyleSheetPool();