diff options
Diffstat (limited to 'sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.cxx')
-rw-r--r-- | sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.cxx b/sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.cxx index 7db8da3b573f..9ea1ddd30c94 100644 --- a/sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.cxx +++ b/sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.cxx @@ -55,7 +55,7 @@ ChangeRequestQueueProcessor::ChangeRequestQueueProcessor ( const std::shared_ptr<ConfigurationUpdater>& rpConfigurationUpdater) : maMutex(), maQueue(), - mnUserEventId(0), + mnUserEventId(nullptr), mxConfiguration(), mpConfigurationController(rpConfigurationController), mpConfigurationUpdater(rpConfigurationUpdater) @@ -64,7 +64,7 @@ ChangeRequestQueueProcessor::ChangeRequestQueueProcessor ( ChangeRequestQueueProcessor::~ChangeRequestQueueProcessor() { - if (mnUserEventId != 0) + if (mnUserEventId != nullptr) Application::RemoveUserEvent(mnUserEventId); } @@ -101,7 +101,7 @@ void ChangeRequestQueueProcessor::StartProcessing() { ::osl::MutexGuard aGuard (maMutex); - if (mnUserEventId == 0 + if (mnUserEventId == nullptr && mxConfiguration.is() && ! maQueue.empty()) { @@ -115,7 +115,7 @@ IMPL_LINK_NOARG_TYPED(ChangeRequestQueueProcessor, ProcessEvent, void*, void) { ::osl::MutexGuard aGuard (maMutex); - mnUserEventId = 0; + mnUserEventId = nullptr; ProcessOneEvent(); @@ -153,7 +153,7 @@ void ChangeRequestQueueProcessor::ProcessOneEvent() SAL_INFO("sd.fwk", OSL_THIS_FUNC << ": All requests are processed"); // The queue is empty so tell the ConfigurationManager to update // its state. - if (mpConfigurationUpdater.get() != NULL) + if (mpConfigurationUpdater.get() != nullptr) { #if OSL_DEBUG_LEVEL >= 2 ConfigurationTracer::TraceConfiguration ( |