summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-09 14:17:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-08-09 15:10:21 +0200
commitb3d898c2017a9fd01b5db27c7d00caff311f2127 (patch)
tree5b035a2b6aa18d77a8e151fb75f76c114696e9ac /slideshow
parent3e7879998bde20d5d6540ef989ecfd850be97b08 (diff)
-Werror=maybe-uninitialized
Change-Id: Ie6814e8ebb3fa17d545a86d18f5c9a895ab5a0ca
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index ded62b4ca970..43c5aaa98a28 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -1799,7 +1799,10 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
if ( rProperty.Name == "PointerVisible" )
{
bool visible;
- rProperty.Value >>= visible;
+ if (!(rProperty.Value >>= visible))
+ {
+ return false;
+ }
mpPointerSymbol->setVisible(visible);
}