summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/module/CenterViewFocusModule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework/module/CenterViewFocusModule.cxx')
-rw-r--r--sd/source/ui/framework/module/CenterViewFocusModule.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.cxx b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
index eb4ae58f630b..5e7f1e8d9421 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.cxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
@@ -48,7 +48,7 @@ CenterViewFocusModule::CenterViewFocusModule (Reference<frame::XController>& rxC
: CenterViewFocusModuleInterfaceBase(MutexOwner::maMutex),
mbValid(false),
mxConfigurationController(),
- mpBase(NULL),
+ mpBase(nullptr),
mbNewViewCreated(false)
{
Reference<XControllerManager> xControllerManager (rxController, UNO_QUERY);
@@ -62,12 +62,12 @@ CenterViewFocusModule::CenterViewFocusModule (Reference<frame::XController>& rxC
{
::sd::DrawController* pController = reinterpret_cast<sd::DrawController*>(
xTunnel->getSomething(sd::DrawController::getUnoTunnelId()));
- if (pController != NULL)
+ if (pController != nullptr)
mpBase = pController->GetViewShellBase();
}
// Check, if all required objects do exist.
- if (mxConfigurationController.is() && mpBase!=NULL)
+ if (mxConfigurationController.is() && mpBase!=nullptr)
{
mbValid = true;
}
@@ -96,8 +96,8 @@ void SAL_CALL CenterViewFocusModule::disposing()
mxConfigurationController->removeConfigurationChangeListener(this);
mbValid = false;
- mxConfigurationController = NULL;
- mpBase = NULL;
+ mxConfigurationController = nullptr;
+ mpBase = nullptr;
}
void SAL_CALL CenterViewFocusModule::notifyConfigurationChange (
@@ -135,14 +135,14 @@ void CenterViewFocusModule::HandleNewView (
if (xViewIds.getLength() > 0)
xView.set( mxConfigurationController->getResource(xViewIds[0]),UNO_QUERY);
Reference<lang::XUnoTunnel> xTunnel (xView, UNO_QUERY);
- if (xTunnel.is() && mpBase!=NULL)
+ if (xTunnel.is() && mpBase!=nullptr)
{
ViewShellWrapper* pViewShellWrapper = reinterpret_cast<ViewShellWrapper*>(
xTunnel->getSomething(ViewShellWrapper::getUnoTunnelId()));
- if (pViewShellWrapper != NULL)
+ if (pViewShellWrapper != nullptr)
{
std::shared_ptr<ViewShell> pViewShell = pViewShellWrapper->GetViewShell();
- if (pViewShell.get() != NULL)
+ if (pViewShell.get() != nullptr)
mpBase->GetViewShellManager()->MoveToTop(*pViewShell);
}
}
@@ -157,8 +157,8 @@ void SAL_CALL CenterViewFocusModule::disposing (
if (rEvent.Source == mxConfigurationController)
{
mbValid = false;
- mxConfigurationController = NULL;
- mpBase = NULL;
+ mxConfigurationController = nullptr;
+ mpBase = nullptr;
}
}