sd/source/core/CustomAnimationEffect.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 83763a3ae15ac8bd2faaf9b194d95ff077f6da4b Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Nov 13 16:39:43 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Nov 13 17:23:58 2024 +0100 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 <xiscofa...@libreoffice.org> diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx index c74d384c17a8..f1a2a257be0d 100644 --- a/sd/source/core/CustomAnimationEffect.cxx +++ b/sd/source/core/CustomAnimationEffect.cxx @@ -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 )