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

tdf#120703 PVS: V668

V668 There is no sense in testing the 'pProc' 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: Iec65fd44fa947a2402da33510c29730a46c2e1a4
Reviewed-on: https://gerrit.libreoffice.org/62424
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 48dbd2bc
......@@ -1215,17 +1215,13 @@ void SbiParser::DefProc( bool bStatic, bool bPrivate )
pDef->Match( std::unique_ptr<SbiProcDef>(pProc) );
pProc = pDef;
aPublics.Add( pDef );
pProc = pDef;
if( !pProc )
pProc = pDef;
pProc->SetPublic( !bPrivate );
// Now we set the search hierarchy for symbols as well as the
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