diff options
Diffstat (limited to 'slideshow/source/engine/slide/slideanimations.cxx')
-rw-r--r-- | slideshow/source/engine/slide/slideanimations.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/slideshow/source/engine/slide/slideanimations.cxx b/slideshow/source/engine/slide/slideanimations.cxx index 8c6be3eeb99f..2264b4600f56 100644 --- a/slideshow/source/engine/slide/slideanimations.cxx +++ b/slideshow/source/engine/slide/slideanimations.cxx @@ -45,18 +45,18 @@ namespace slideshow SlideAnimations::~SlideAnimations() COVERITY_NOEXCEPT_FALSE { - if( mpRootNode ) + if( !mpRootNode ) + return; + + SHOW_NODE_TREE( mpRootNode ); + + try + { + mpRootNode->dispose(); + } + catch (uno::Exception &) { - SHOW_NODE_TREE( mpRootNode ); - - try - { - mpRootNode->dispose(); - } - catch (uno::Exception &) - { - SAL_WARN( "slideshow", comphelper::anyToString(cppu::getCaughtException() ) ); - } + SAL_WARN( "slideshow", comphelper::anyToString(cppu::getCaughtException() ) ); } } |