diff options
Diffstat (limited to 'sd/source/ui/tools/IdleDetection.cxx')
-rw-r--r-- | sd/source/ui/tools/IdleDetection.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/tools/IdleDetection.cxx b/sd/source/ui/tools/IdleDetection.cxx index ed16b2f92a3a..e5e9dab48ba4 100644 --- a/sd/source/ui/tools/IdleDetection.cxx +++ b/sd/source/ui/tools/IdleDetection.cxx @@ -36,7 +36,7 @@ namespace sd { namespace tools { sal_Int32 IdleDetection::GetIdleState (const vcl::Window* pWindow) { sal_Int32 nResult (CheckInputPending() | CheckSlideShowRunning()); - if (pWindow != NULL) + if (pWindow != nullptr) nResult |= CheckWindowPainting(*pWindow); return nResult; } @@ -57,7 +57,7 @@ sal_Int32 IdleDetection::CheckSlideShowRunning() // Iterate over all view frames. for (SfxViewFrame* pViewFrame = SfxViewFrame::GetFirst(); - pViewFrame!=NULL && !bIsSlideShowShowing; + pViewFrame!=nullptr && !bIsSlideShowShowing; pViewFrame = SfxViewFrame::GetNext(*pViewFrame)) { // Ignore the current frame when it does not exist, is not valid, or @@ -77,7 +77,7 @@ sal_Int32 IdleDetection::CheckSlideShowRunning() // Get sd::ViewShell from active frame. ViewShellBase* pBase = ViewShellBase::GetViewShellBase(pViewFrame); - if (pBase != NULL) + if (pBase != nullptr) { rtl::Reference< SlideShow > xSlideShow( SlideShow::GetSlideShow( *pBase ) ); if( xSlideShow.is() && xSlideShow->isRunning() ) |