diff options
Diffstat (limited to 'sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx b/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx index f4f0a6c2e1c3..150791213b13 100644 --- a/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx +++ b/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx @@ -46,12 +46,12 @@ std::shared_ptr<CacheConfiguration> CacheConfiguration::Instance() { SolarMutexGuard aSolarGuard; CacheConfigSharedPtr &rInstancePtr = theInstance::get(); - if (rInstancePtr.get() == nullptr) + if (!rInstancePtr) { // Maybe somebody else kept a previously created instance alive. if ( ! mpWeakInstance.expired()) rInstancePtr = std::shared_ptr<CacheConfiguration>(mpWeakInstance); - if (rInstancePtr.get() == nullptr) + if (!rInstancePtr) { // We have to create a new instance. rInstancePtr.reset(new CacheConfiguration()); |