diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/sidebar/MasterPageContainer.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx index d8552ec5e91d..18ad57d14a3c 100644 --- a/sd/source/ui/sidebar/MasterPageContainer.cxx +++ b/sd/source/ui/sidebar/MasterPageContainer.cxx @@ -118,7 +118,8 @@ private: }; friend class Deleter; - enum InitializationState { NOT_INITIALIZED, INITIALIZING, INITIALIZED } meInitializationState; + enum class InitializationState { NotInitialized, Initializing, Initialized }; + InitializationState meInitializationState; std::unique_ptr<MasterPageContainerQueue> mpRequestQueue; css::uno::Reference<css::frame::XModel> mxModel; @@ -469,7 +470,7 @@ bool MasterPageContainer::RequestPreview (Token aToken) MasterPageContainer::Implementation::Implementation() : maMutex(), maContainer(), - meInitializationState(NOT_INITIALIZED), + meInitializationState(InitializationState::NotInitialized), mpDocument(nullptr), maPreviewRenderer(), mbFirstPageObjectSeen(false), @@ -510,10 +511,10 @@ void MasterPageContainer::Implementation::LateInit() { const ::osl::MutexGuard aGuard (maMutex); - if (meInitializationState != NOT_INITIALIZED) + if (meInitializationState != InitializationState::NotInitialized) return; - meInitializationState = INITIALIZING; + meInitializationState = InitializationState::Initializing; OSL_ASSERT(Instance().get()==this); mpRequestQueue.reset(MasterPageContainerQueue::Create( @@ -524,7 +525,7 @@ void MasterPageContainer::Implementation::LateInit() 5, 50); - meInitializationState = INITIALIZED; + meInitializationState = InitializationState::Initialized; } void MasterPageContainer::Implementation::AddChangeListener (const Link<MasterPageContainerChangeEvent&,void>& rLink) |