diff options
Diffstat (limited to 'sd/source/ui/framework/configuration/ConfigurationController.cxx')
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationController.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationController.cxx b/sd/source/ui/framework/configuration/ConfigurationController.cxx index 1a0bb8a07d7c..fa1f75662a80 100644 --- a/sd/source/ui/framework/configuration/ConfigurationController.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationController.cxx @@ -88,7 +88,7 @@ public: ConfigurationController::Lock::Lock (const Reference<XConfigurationController>& rxController) : mxController(rxController) { - assert(mxController.is()); + OSL_ASSERT(mxController.is()); if (mxController.is()) mxController->lock(); @@ -149,7 +149,7 @@ void ConfigurationController::ProcessEvent() { if (mpImplementation.get() != nullptr) { - assert(mpImplementation->mpQueueProcessor.get()!=nullptr); + OSL_ASSERT(mpImplementation->mpQueueProcessor.get()!=nullptr); mpImplementation->mpQueueProcessor->ProcessOneEvent(); } @@ -174,7 +174,7 @@ void SAL_CALL ConfigurationController::addConfigurationChangeListener ( ::osl::MutexGuard aGuard (maMutex); ThrowIfDisposed(); - assert(mpImplementation.get()!=nullptr); + OSL_ASSERT(mpImplementation.get()!=nullptr); mpImplementation->mpBroadcaster->AddListener(rxListener, rsEventType, rUserData); } @@ -198,8 +198,8 @@ void SAL_CALL ConfigurationController::notifyEvent ( void SAL_CALL ConfigurationController::lock() { - assert(mpImplementation.get()!=nullptr); - assert(mpImplementation->mpConfigurationUpdater.get()!=nullptr); + OSL_ASSERT(mpImplementation.get()!=nullptr); + OSL_ASSERT(mpImplementation->mpConfigurationUpdater.get()!=nullptr); ::osl::MutexGuard aGuard (maMutex); ThrowIfDisposed(); @@ -219,7 +219,7 @@ void SAL_CALL ConfigurationController::unlock() if (rBHelper.bDisposed) ThrowIfDisposed(); - assert(mpImplementation->mnLockCount>0); + OSL_ASSERT(mpImplementation->mnLockCount>0); --mpImplementation->mnLockCount; if (mpImplementation->mnLockCount == 0) mpImplementation->mpConfigurationUpdaterLock.reset(); @@ -510,7 +510,7 @@ void ConfigurationController::ThrowIfDisposed () const if (mpImplementation.get() == nullptr) { - assert(mpImplementation.get() != nullptr); + OSL_ASSERT(mpImplementation.get() != nullptr); throw RuntimeException("ConfigurationController not initialized", const_cast<uno::XWeak*>(static_cast<const uno::XWeak*>(this))); } |