diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-20 12:16:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-20 13:41:30 +0200 |
commit | 6274fbe13c8fa556916b5aed695c6921ef6ff84f (patch) | |
tree | 50b4d8d0ff45e4eb36d8cd1babe47d1ecd559d3e /svtools/source/misc | |
parent | dd7caf3cfd3de636c8bf37c8347c1b72b3772aeb (diff) |
loplugin:constantparam
Change-Id: I59a37e1d37fa749cba5159daa23fe663bcc55435
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101045
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/imagemgr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index 6a0810d7d23b..7424791091e0 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -711,11 +711,11 @@ static OUString GetImageNameFromList_Impl( SvImageId nImageId, vcl::ImageType eI return OUString(); } -static Image GetImageFromList_Impl( SvImageId nImageId, vcl::ImageType eImageType, Size aSize = Size()) +static Image GetImageFromList_Impl( SvImageId nImageId, vcl::ImageType eImageType) { OUString sImageName(GetImageNameFromList_Impl(nImageId, eImageType)); if (!sImageName.isEmpty()) - return Image(StockImage::Yes, sImageName, aSize); + return Image(StockImage::Yes, sImageName, Size()); return Image(); } @@ -788,11 +788,11 @@ OUString SvFileInformationManager::GetImageId(const INetURLObject& rObject, bool return GetImageNameFromList_Impl(nImage, bBig ? vcl::ImageType::Size26 : vcl::ImageType::Size16); } -Image SvFileInformationManager::GetImage(const INetURLObject& rObject, bool bBig, Size const & rPreferredSize) +Image SvFileInformationManager::GetImage(const INetURLObject& rObject, bool bBig) { SvImageId nImage = GetImageId_Impl( rObject, true ); DBG_ASSERT( nImage != SvImageId::NONE, "invalid ImageId" ); - return GetImageFromList_Impl(nImage, bBig ? vcl::ImageType::Size26 : vcl::ImageType::Size16, rPreferredSize); + return GetImageFromList_Impl(nImage, bBig ? vcl::ImageType::Size26 : vcl::ImageType::Size16); } OUString SvFileInformationManager::GetFileImageId(const INetURLObject& rObject) |