summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-22 16:21:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-22 21:56:13 +0200
commitc816cb847da9a3302f23e113171c81fed6b319c0 (patch)
tree59c68cf6d5008e65dbdd379cbbe6fca5a887ee8b /sdext
parent7354da6ccfd0492a3f38ff07ce65500ec9f727b7 (diff)
pvs-studio: V571 Recurring check
Change-Id: I1ad7bcfa557b38488adf26b434433e6bae259f43 Reviewed-on: https://gerrit.libreoffice.org/62190 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterSpritePane.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sdext/source/presenter/PresenterSpritePane.cxx b/sdext/source/presenter/PresenterSpritePane.cxx
index a5ebf1fce252..2e568d64260f 100644
--- a/sdext/source/presenter/PresenterSpritePane.cxx
+++ b/sdext/source/presenter/PresenterSpritePane.cxx
@@ -141,10 +141,7 @@ void PresenterSpritePane::UpdateCanvases()
{
Reference<XComponent> xContentCanvasComponent (mxContentCanvas, UNO_QUERY);
if (xContentCanvasComponent.is())
- {
- if (xContentCanvasComponent.is())
- xContentCanvasComponent->dispose();
- }
+ xContentCanvasComponent->dispose();
// The border canvas is the content canvas of the sprite.
mxBorderCanvas = mpSprite->GetCanvas();