summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-06 20:12:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-06 21:52:20 +0200
commit84a56eac83f220fd917a5433fe9da4b7815dfff6 (patch)
treef02806412cb23061828ca6209ddb91a8d662b986 /sw/source/uibase/sidebar
parent8ef6be73325dbb6761b247ff187c709ba0f81bfb (diff)
loplugin:constparams in sw part7
Change-Id: Iaace9c024649481b2f7cdd67aaf1e86624fe0d4a Reviewed-on: https://gerrit.libreoffice.org/40811 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/sidebar')
-rw-r--r--sw/source/uibase/sidebar/StylePresetsPanel.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/sidebar/StylePresetsPanel.cxx b/sw/source/uibase/sidebar/StylePresetsPanel.cxx
index 5f58fef27cce..a69861794b30 100644
--- a/sw/source/uibase/sidebar/StylePresetsPanel.cxx
+++ b/sw/source/uibase/sidebar/StylePresetsPanel.cxx
@@ -43,7 +43,7 @@ namespace sw { namespace sidebar {
namespace {
void renderPreview(sfx2::StyleManager* pStyleManager, OutputDevice& aOutputDevice,
- OUString const & sName, sal_Int32 nHeight, tools::Rectangle& aRect)
+ OUString const & sName, sal_Int32 nHeight, tools::Rectangle const & aRect)
{
SfxStyleSheetBase* pStyleSheet = pStyleManager->Search(sName, SfxStyleFamily::Para);
@@ -56,7 +56,7 @@ void renderPreview(sfx2::StyleManager* pStyleManager, OutputDevice& aOutputDevic
}
}
-BitmapEx GenerateStylePreview(SfxObjectShell& rSource, OUString& aName)
+BitmapEx GenerateStylePreview(SfxObjectShell& rSource, OUString const & aName)
{
sfx2::StyleManager* pStyleManager = rSource.GetStyleManager();
@@ -125,7 +125,7 @@ BitmapEx GenerateStylePreview(SfxObjectShell& rSource, OUString& aName)
return pVirtualDev->GetBitmapEx(Point(), aSize);
}
-BitmapEx CreatePreview(OUString& aUrl, OUString& aName)
+BitmapEx CreatePreview(OUString const & aUrl, OUString& aName)
{
SfxMedium aMedium(aUrl, StreamMode::STD_READWRITE);
SfxObjectShell* pObjectShell = SfxObjectShell::Current();