diff options
Diffstat (limited to 'sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx')
-rwxr-xr-x | sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx index 1bbecbef3d66..3040eb1e2bd8 100755 --- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx +++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -93,8 +93,8 @@ class CacheEntry; class CacheHash { public: - size_t operator()(const BitmapCache::CacheKey& p) const - { return (size_t)p; } + size_t operator()(const BitmapCache::CacheKey& p) const + { return (size_t)p; } }; class BitmapCache::CacheBitmapContainer @@ -295,7 +295,7 @@ void BitmapCache::InvalidateCache (void) void BitmapCache::SetBitmap ( - const CacheKey& rKey, + const CacheKey& rKey, const ::boost::shared_ptr<BitmapEx>& rpPreview, bool bIsPrecious) { @@ -317,7 +317,7 @@ void BitmapCache::SetBitmap ( CacheEntry (rpPreview, mnCurrentAccessTime++, bIsPrecious)) ).first; } - + if (iEntry != mpBitmapContainer->end()) UpdateCacheSize(iEntry->second, ADD); } @@ -427,7 +427,7 @@ void BitmapCache::Recycle (const BitmapCache& rCache) if ( ! bIncludeNoPreview && ! iEntry->second.HasPreview()) continue; - + aSortedContainer.push_back(SortableBitmapContainer::value_type( iEntry->first,iEntry->second)); } @@ -476,7 +476,7 @@ void BitmapCache::UpdateCacheSize (const CacheEntry& rEntry, CacheOperation eOpe if ( ! rEntry.IsPrecious() && mnNormalCacheSize>mnMaximalNormalCacheSize) { mbIsFull = true; -#ifdef VERBOSE +#ifdef VERBOSE OSL_TRACE("cache size is %d > %d", mnNormalCacheSize,mnMaximalNormalCacheSize); #endif mpCacheCompactor->RequestCompaction(); @@ -488,7 +488,7 @@ void BitmapCache::UpdateCacheSize (const CacheEntry& rEntry, CacheOperation eOpe if (mnNormalCacheSize < mnMaximalNormalCacheSize) mbIsFull = false; break; - + default: OSL_ASSERT(false); break; @@ -514,10 +514,10 @@ BitmapCache::CacheEntry::CacheEntry( BitmapCache::CacheEntry::CacheEntry( - const ::boost::shared_ptr<BitmapEx>& rpPreview, + const ::boost::shared_ptr<BitmapEx>& rpPreview, sal_Int32 nLastAccessTime, bool bIsPrecious) - : mpPreview(rpPreview), + : mpPreview(rpPreview), mbIsUpToDate(true), mnLastAccessTime(nLastAccessTime), mbIsPrecious(bIsPrecious) @@ -576,7 +576,7 @@ void BitmapCache::CacheEntry::Compress (const ::boost::shared_ptr<BitmapCompress nNewSize, nRatio); #endif - + mpCompressor = rpCompressor; } |