diff options
Diffstat (limited to 'sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx index 46a3fca292af..06476ad639cd 100644 --- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx +++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx @@ -58,7 +58,7 @@ public: Bitmap GetMarkedPreview() const { return maMarkedPreview; } inline void SetMarkedPreview (const Bitmap& rMarkePreview); - bool HasReplacement() const { return (mpReplacement.get() != NULL); } + bool HasReplacement() const { return (mpReplacement.get() != nullptr); } inline bool HasLosslessReplacement() const; void Invalidate() { mpReplacement.reset(); mpCompressor.reset(); mbIsUpToDate = false; } bool IsPrecious() const { return mbIsPrecious; } @@ -499,7 +499,7 @@ inline sal_Int32 BitmapCache::CacheEntry::GetMemorySize() const sal_Int32 nSize (0); nSize += maPreview.GetSizeBytes(); nSize += maMarkedPreview.GetSizeBytes(); - if (mpReplacement.get() != NULL) + if (mpReplacement.get() != nullptr) nSize += mpReplacement->GetMemorySize(); return nSize; } @@ -508,7 +508,7 @@ void BitmapCache::CacheEntry::Compress (const std::shared_ptr<BitmapCompressor>& { if ( ! maPreview.IsEmpty()) { - if (mpReplacement.get() == NULL) + if (mpReplacement.get() == nullptr) { mpReplacement = rpCompressor->Compress(maPreview); @@ -531,7 +531,7 @@ void BitmapCache::CacheEntry::Compress (const std::shared_ptr<BitmapCompressor>& inline void BitmapCache::CacheEntry::Decompress() { - if (mpReplacement.get()!=NULL && mpCompressor.get()!=NULL && maPreview.IsEmpty()) + if (mpReplacement.get()!=nullptr && mpCompressor.get()!=nullptr && maPreview.IsEmpty()) { maPreview = mpCompressor->Decompress(*mpReplacement); maMarkedPreview.SetEmpty(); @@ -560,8 +560,8 @@ inline void BitmapCache::CacheEntry::SetMarkedPreview (const Bitmap& rMarkedPrev inline bool BitmapCache::CacheEntry::HasLosslessReplacement() const { - return mpReplacement.get()!=NULL - && mpCompressor.get()!=NULL + return mpReplacement.get()!=nullptr + && mpCompressor.get()!=nullptr && mpCompressor->IsLossless(); } |