diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-21 09:18:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-21 09:20:46 +0200 |
commit | b4845f5dba90edf84909e6828d476f675606214e (patch) | |
tree | 3bf89c5b69679668acdb34bf5e92ef63c4ac6f29 /svx | |
parent | Get rid of trivial comphelper::query_interface wrapper (diff) | |
download | core-b4845f5dba90edf84909e6828d476f675606214e.tar.gz core-b4845f5dba90edf84909e6828d476f675606214e.zip |
loplugin:passstuffbyref
Change-Id: I4889b3d56b9e6f6926d1d094130c277588ff143c
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/styles/CommonStyleManager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |