From b4845f5dba90edf84909e6828d476f675606214e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 21 Apr 2015 09:18:35 +0200 Subject: loplugin:passstuffbyref Change-Id: I4889b3d56b9e6f6926d1d094130c277588ff143c --- svx/source/styles/CommonStyleManager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/styles') diff --git a/svx/source/styles/CommonStyleManager.cxx b/svx/source/styles/CommonStyleManager.cxx index 4b3b6d1a617a..d452ba49748a 100644 --- a/svx/source/styles/CommonStyleManager.cxx +++ b/svx/source/styles/CommonStyleManager.cxx @@ -15,7 +15,7 @@ namespace svx { sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer( - OutputDevice& rOutputDev, OUString sName, + OutputDevice& rOutputDev, OUString const & rName, SfxStyleFamily eFamily, long nMaxHeight) { SfxStyleSheetBasePool* pPool = mrShell.GetStyleSheetPool(); @@ -28,7 +28,7 @@ sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer( while (pStyle) { - if (sName == pStyle->GetName()) + if (rName == pStyle->GetName()) return new CommonStylePreviewRenderer(mrShell, rOutputDev, pStyle, nMaxHeight); pStyle = pPool->Next(); } -- cgit