diff options
Diffstat (limited to 'sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx index 6192c75c0576..feca2cee49a1 100644 --- a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx +++ b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx @@ -168,7 +168,7 @@ std::shared_ptr<PageCacheManager> PageCacheManager::Instance() ::osl::MutexGuard aGuard (::osl::Mutex::getGlobalMutex()); pInstance = mpInstance.lock(); - if (pInstance.get() == nullptr) + if (pInstance == nullptr) { pInstance = std::shared_ptr<PageCacheManager>( new PageCacheManager(), @@ -202,11 +202,11 @@ std::shared_ptr<BitmapCache> PageCacheManager::GetCache ( pResult = iCache->second; // Look for the cache in the list of recently used caches. - if (pResult.get() == nullptr) + if (pResult == nullptr) pResult = GetRecentlyUsedCache(pDocument, rPreviewSize); // Create the cache when no suitable one does exist. - if (pResult.get() == nullptr) + if (pResult == nullptr) pResult.reset(new BitmapCache()); // The cache may be newly created and thus empty or is old and may @@ -215,7 +215,7 @@ std::shared_ptr<BitmapCache> PageCacheManager::GetCache ( Recycle(pResult, pDocument,rPreviewSize); // Put the new (or old) cache into the container. - if (pResult.get() != nullptr) + if (pResult != nullptr) mpPageCaches->emplace(aKey, pResult); return pResult; @@ -280,7 +280,7 @@ std::shared_ptr<BitmapCache> PageCacheManager::ChangeSize ( { std::shared_ptr<BitmapCache> pResult; - if (rpCache.get() != nullptr) + if (rpCache != nullptr) { // Look up the given cache in the list of active caches. PageCacheContainer::iterator iCacheToChange (::std::find_if( |