diff options
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx index 6a7772cd75de..d515d21cf580 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx @@ -145,7 +145,7 @@ void QueueProcessor::ProcessOneRequest ( { try { - ::osl::MutexGuard aGuard (maMutex); + std::lock_guard aGuard (maMutex); // Create a new preview bitmap and store it in the cache. if (mpCache != nullptr && mpCacheContext) diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx index f29d996c6fa8..0035bcbce7e1 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx @@ -24,6 +24,7 @@ #include "SlsBitmapFactory.hxx" #include <vcl/timer.hxx> +#include <mutex> namespace sd::slidesorter::cache { @@ -74,7 +75,7 @@ private: /** This mutex is used to guard the queue processor. Be careful not to mix its use with that of the solar mutex. */ - ::osl::Mutex maMutex; + std::mutex maMutex; Timer maTimer; DECL_LINK(ProcessRequestHdl, Timer *, void); |