summaryrefslogtreecommitdiff
path: root/sd/source/filter/ppt
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-21 17:27:44 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-10-21 20:17:14 +0200
commite4b165d729926692ae19c85b1596dfdaa74a15b9 (patch)
tree424505ddf1cb3605cd0e919baefb8d2c042eaa9f /sd/source/filter/ppt
parentacd9e3f5dac9804286eb498cb9665ba333fc6583 (diff)
tdf#120703 (PVS): redundant nullptr check
V668 There is no sense in testing the 'pEffect' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. Change-Id: I979915efb406d3173e03b4f47883e01fe0ca5d2d Reviewed-on: https://gerrit.libreoffice.org/62140 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/filter/ppt')
-rw-r--r--sd/source/filter/ppt/ppt97animations.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sd/source/filter/ppt/ppt97animations.cxx b/sd/source/filter/ppt/ppt97animations.cxx
index f5729fcf1269..fe2f9010846e 100644
--- a/sd/source/filter/ppt/ppt97animations.cxx
+++ b/sd/source/filter/ppt/ppt97animations.cxx
@@ -581,11 +581,6 @@ void Ppt97Animation::createAndSetCustomAnimationEffect( SdrObject* pObj )
//1. ------ create an effect from the presets ------
::sd::CustomAnimationEffectPtr pEffect( new ::sd::CustomAnimationEffect( pPreset->create( GetPresetSubType() ) ) );
- if( !pEffect.get() )
- {
- DBG_ASSERT(pEffect.get(),"no suitable effect found");
- return;
- }
//2. ------ adapt the created effect ------