Kaydet (Commit) 8d21f814 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#120703 PVS: V519 variable is assigned values twice successively

V519 The 'm_nFetchDirectionPropertyHandle' variable is assigned values twice
     successively. Perhaps this is a mistake. Check lines: 489, 493.

It was this way since 2000 (commit d3329bac)

Change-Id: Ia6ade4355bbfac799f8b32069f27a0c439300030
Reviewed-on: https://gerrit.libreoffice.org/62414
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 6a12a9e9
......@@ -485,11 +485,6 @@ CCRS_PropertySetInfo::CCRS_PropertySetInfo(
rMyProp.Type = cppu::UnoType<sal_Bool>::get();
rMyProp.Attributes = PropertyAttribute::BOUND | PropertyAttribute::MAYBEDEFAULT;
if( nFetchDirection != -1 )
m_nFetchDirectionPropertyHandle = (*pOrigProps)[nFetchDirection].Handle;
else
m_nFetchDirectionPropertyHandle = impl_getRemainedHandle();
m_nFetchDirectionPropertyHandle = rMyProp.Handle;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment