tdf#163486: PVS: variable is used after being declared

V614 	The 'pEffect' smart pointer is utilized immediately after being declared or reset. It is suspicious that no value was assigned to it.

Change-Id: Ic93aa42fa34af873f8dced5da0c1f55a8dcbd58d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176554
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-13 16:39:43 +01:00
parent d366b2b6d9
commit 83763a3ae1

View file

@ -3277,8 +3277,7 @@ CustomAnimationEffectPtr MainSequence::getEffectFromOffset( sal_Int32 nOffset )
return (*aIter)->getEffectFromOffset( nOffset );
}
CustomAnimationEffectPtr pEffect;
return pEffect;
return CustomAnimationEffectPtr();
}
bool MainSequence::disposeShape( const Reference< XShape >& xShape )