summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-14 13:41:38 +0200
committerNoel Grandin <noel@peralex.com>2016-03-15 08:27:25 +0200
commitb47cb646ff2a62fcd3fac0e453a7261bbaefbcb7 (patch)
tree49a2dc78e998baa77212776d7d94fb8d72dc0f00 /sd
parent89e0663c55f7f1763536a345d63111115c71ef26 (diff)
loplugin:constantparam
Change-Id: I270e068b3c83e966e741b0a072fecce9d92d53f5
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx5
-rw-r--r--sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx8
-rw-r--r--sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx2
3 files changed, 5 insertions, 10 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
index e537fff89e58..93e527d162f9 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
@@ -375,8 +375,7 @@ void BitmapCache::Recycle (const BitmapCache& rCache)
}
}
-::std::unique_ptr<BitmapCache::CacheIndex> BitmapCache::GetCacheIndex (
- bool bIncludeNoPreview) const
+::std::unique_ptr<BitmapCache::CacheIndex> BitmapCache::GetCacheIndex() const
{
::osl::MutexGuard aGuard (maMutex);
@@ -391,7 +390,7 @@ void BitmapCache::Recycle (const BitmapCache& rCache)
if ( iEntry->second.IsPrecious())
continue;
- if ( ! bIncludeNoPreview && ! iEntry->second.HasPreview())
+ if ( ! iEntry->second.HasPreview())
continue;
aSortedContainer.push_back(SortableBitmapContainer::value_type(
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
index dff7a63d0ee8..ff875ae59424 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
@@ -151,13 +151,9 @@ public:
part of) the cache. The entries of the index are sorted according
to last access times with the least recently access time first.
Entries with the precious flag set are omitted.
- @param bIncludeNoPreview
- When this flag is <TRUE/> entries with that have no preview
- bitmaps are included in the index. When the flag is <FALSE/> these entries
- are omitted.
+ Entries with that have no preview bitmaps are omitted.
*/
- ::std::unique_ptr<CacheIndex> GetCacheIndex (
- bool bIncludeNoPreview) const;
+ ::std::unique_ptr<CacheIndex> GetCacheIndex () const;
/** Compress the specified preview bitmap with the given bitmap
compressor. A reference to the compressor is stored for later
diff --git a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
index ce782e98e12b..d2e4b651ce9f 100644
--- a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
@@ -172,7 +172,7 @@ void CacheCompactionByCompression::Run()
SAL_INFO("sd.sls", OSL_THIS_FUNC << ": bitmap cache uses to much space: " << mrCache.GetSize() << " > " << mnMaximalCacheSize);
::std::unique_ptr< ::sd::slidesorter::cache::BitmapCache::CacheIndex> pIndex (
- mrCache.GetCacheIndex(false));
+ mrCache.GetCacheIndex());
::sd::slidesorter::cache::BitmapCache::CacheIndex::iterator iIndex;
for (iIndex=pIndex->begin(); iIndex!=pIndex->end(); ++iIndex)
{