Kaydet (Commit) b4845f5d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:passstuffbyref

Change-Id: I4889b3d56b9e6f6926d1d094130c277588ff143c
üst 08a943fc
...@@ -36,8 +36,8 @@ public: ...@@ -36,8 +36,8 @@ public:
{} {}
virtual StylePreviewRenderer* CreateStylePreviewRenderer( virtual StylePreviewRenderer* CreateStylePreviewRenderer(
OutputDevice& /*rOutputDev*/, OUString /*rName*/, OutputDevice& rOutputDev, OUString const & rName,
SfxStyleFamily /*eFamily*/, long /*nMaxHeight*/ = 32) = 0; SfxStyleFamily eFamily, long nMaxHeight = 32) = 0;
}; };
} // end namespace sfx2 } // end namespace sfx2
......
...@@ -30,7 +30,7 @@ public: ...@@ -30,7 +30,7 @@ public:
{} {}
virtual sfx2::StylePreviewRenderer* CreateStylePreviewRenderer( virtual sfx2::StylePreviewRenderer* CreateStylePreviewRenderer(
OutputDevice& rOutputDev, OUString sName, OutputDevice& rOutputDev, OUString const & rName,
SfxStyleFamily eFamily, long nMaxHeight = 32) SAL_OVERRIDE; SfxStyleFamily eFamily, long nMaxHeight = 32) SAL_OVERRIDE;
}; };
......
...@@ -15,7 +15,7 @@ namespace svx ...@@ -15,7 +15,7 @@ namespace svx
{ {
sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer( sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
OutputDevice& rOutputDev, OUString sName, OutputDevice& rOutputDev, OUString const & rName,
SfxStyleFamily eFamily, long nMaxHeight) SfxStyleFamily eFamily, long nMaxHeight)
{ {
SfxStyleSheetBasePool* pPool = mrShell.GetStyleSheetPool(); SfxStyleSheetBasePool* pPool = mrShell.GetStyleSheetPool();
...@@ -28,7 +28,7 @@ sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer( ...@@ -28,7 +28,7 @@ sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
while (pStyle) while (pStyle)
{ {
if (sName == pStyle->GetName()) if (rName == pStyle->GetName())
return new CommonStylePreviewRenderer(mrShell, rOutputDev, pStyle, nMaxHeight); return new CommonStylePreviewRenderer(mrShell, rOutputDev, pStyle, nMaxHeight);
pStyle = pPool->Next(); pStyle = pPool->Next();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment