summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-21 09:18:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-21 09:20:46 +0200
commitb4845f5dba90edf84909e6828d476f675606214e (patch)
tree3bf89c5b69679668acdb34bf5e92ef63c4ac6f29
parent08a943fc379c5f8af25128c935e93e6a9d82d136 (diff)
loplugin:passstuffbyref
Change-Id: I4889b3d56b9e6f6926d1d094130c277588ff143c
-rw-r--r--include/sfx2/StyleManager.hxx4
-rw-r--r--include/svx/CommonStyleManager.hxx2
-rw-r--r--svx/source/styles/CommonStyleManager.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/include/sfx2/StyleManager.hxx b/include/sfx2/StyleManager.hxx
index 66159f75ec9c..962fbb967e47 100644
--- a/include/sfx2/StyleManager.hxx
+++ b/include/sfx2/StyleManager.hxx
@@ -36,8 +36,8 @@ public:
{}
virtual StylePreviewRenderer* CreateStylePreviewRenderer(
- OutputDevice& /*rOutputDev*/, OUString /*rName*/,
- SfxStyleFamily /*eFamily*/, long /*nMaxHeight*/ = 32) = 0;
+ OutputDevice& rOutputDev, OUString const & rName,
+ SfxStyleFamily eFamily, long nMaxHeight = 32) = 0;
};
} // end namespace sfx2
diff --git a/include/svx/CommonStyleManager.hxx b/include/svx/CommonStyleManager.hxx
index 43346aa5dc55..0ce0a3de21fc 100644
--- a/include/svx/CommonStyleManager.hxx
+++ b/include/svx/CommonStyleManager.hxx
@@ -30,7 +30,7 @@ public:
{}
virtual sfx2::StylePreviewRenderer* CreateStylePreviewRenderer(
- OutputDevice& rOutputDev, OUString sName,
+ OutputDevice& rOutputDev, OUString const & rName,
SfxStyleFamily eFamily, long nMaxHeight = 32) SAL_OVERRIDE;
};
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();
}