summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx')
-rw-r--r--sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx b/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx
index 10ea1f09e71d..e551acf34ded 100644
--- a/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx
+++ b/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx
@@ -66,10 +66,7 @@ void ViewCacheContext::NotifyPreviewCreation (
bool ViewCacheContext::IsIdle()
{
tools::IdleState nIdleState (tools::IdleDetection::GetIdleState(mrSlideSorter.GetContentWindow()));
- if (nIdleState == tools::IdleState::Idle)
- return true;
- else
- return false;
+ return nIdleState == tools::IdleState::Idle;
}
bool ViewCacheContext::IsVisible (cache::CacheKey aKey)