summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx3
-rw-r--r--slideshow/source/inc/interruptabledelayevent.hxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx
index a3b89b7d55fe..7c77a3c15f2b 100644
--- a/slideshow/source/engine/shapes/drawshape.cxx
+++ b/slideshow/source/engine/shapes/drawshape.cxx
@@ -731,8 +731,7 @@ namespace slideshow
bool DrawShape::isContentChanged() const
{
- return mbForceUpdate ?
- true :
+ return mbForceUpdate ||
getUpdateFlags() != ViewShape::NONE;
}
diff --git a/slideshow/source/inc/interruptabledelayevent.hxx b/slideshow/source/inc/interruptabledelayevent.hxx
index 7f22bbc2dbf8..a0cec175948d 100644
--- a/slideshow/source/inc/interruptabledelayevent.hxx
+++ b/slideshow/source/inc/interruptabledelayevent.hxx
@@ -62,7 +62,7 @@ namespace slideshow
// pass on to wrappee - this ensures that we return
// false on isCharged(), even if the other event has
// been fired outside our own fire() method
- return !mpEvent ? false : mpEvent->isCharged();
+ return mpEvent && mpEvent->isCharged();
}
virtual double getActivationTime( double nCurrentTime ) const SAL_OVERRIDE