diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-09 14:17:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-09 15:10:21 +0200 |
commit | b3d898c2017a9fd01b5db27c7d00caff311f2127 (patch) | |
tree | 5b035a2b6aa18d77a8e151fb75f76c114696e9ac /slideshow | |
parent | Show hidden toolbar items when window size is decreased (diff) | |
download | core-b3d898c2017a9fd01b5db27c7d00caff311f2127.tar.gz core-b3d898c2017a9fd01b5db27c7d00caff311f2127.zip |
-Werror=maybe-uninitialized
Change-Id: Ie6814e8ebb3fa17d545a86d18f5c9a895ab5a0ca
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 5 |
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); } |