diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-01-23 22:00:06 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-01-24 17:35:58 +0100 |
commit | ca01594ea55e1fe64c5df705e8f7c18eba82559a (patch) | |
tree | f21e75082955095ff9d872409fc7c6dbf7ef7b4a /vcl/source | |
parent | 6fd891839a45f9a3e7a7bd2c9e8f13388e7992cd (diff) |
ImplImageTree.cxx - hide local functions in anonymous namespace
Change-Id: I8f031e276955dad714b47c35527d3536d699590b
Reviewed-on: https://gerrit.libreoffice.org/66825
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/image/ImplImageTree.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx index c98351a5c73e..2b1603dbdaa9 100644 --- a/vcl/source/image/ImplImageTree.cxx +++ b/vcl/source/image/ImplImageTree.cxx @@ -340,7 +340,10 @@ bool ImplImageTree::loadImage(OUString const & rName, OUString const & rStyle, B return false; } -static OUString createVariant(ImageRequestParameters& rParameters) +namespace +{ + +OUString createVariant(ImageRequestParameters& rParameters) { bool bConvertToDarkTheme = rParameters.convertToDarkTheme(); sal_Int32 aScalePercentage = rParameters.scalePercentage(); @@ -353,7 +356,7 @@ static OUString createVariant(ImageRequestParameters& rParameters) return aVariant; } -static bool loadDiskCachedVersion(OUString const & sVariant, ImageRequestParameters& rParameters) +bool loadDiskCachedVersion(OUString const & sVariant, ImageRequestParameters& rParameters) { OUString sUrl(getIconCacheUrl(sVariant, rParameters)); if (!urlExists(sUrl)) @@ -365,7 +368,7 @@ static bool loadDiskCachedVersion(OUString const & sVariant, ImageRequestParamet return true; } -static void cacheBitmapToDisk(OUString const & sVariant, ImageRequestParameters const & rParameters) +void cacheBitmapToDisk(OUString const & sVariant, ImageRequestParameters const & rParameters) { OUString sUrl(createIconCacheUrl(sVariant, rParameters)); vcl::PNGWriter aWriter(rParameters.mrBitmap); @@ -379,6 +382,8 @@ static void cacheBitmapToDisk(OUString const & sVariant, ImageRequestParameters {} } +} // end anonymous namespace + bool ImplImageTree::doLoadImage(ImageRequestParameters& rParameters) { setStyle(rParameters.msStyle); |