Kaydet (Commit) cd47929a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1314997 Dereference null return value

Change-Id: If0c60ec2dcdf95a0aec7f0c9561142fee4cd30c4
üst 0b8d81e8
...@@ -1340,10 +1340,8 @@ void SwRegHistory::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) ...@@ -1340,10 +1340,8 @@ void SwRegHistory::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
{ {
pNewHstr = new SwHistorySetAttrSet( rSet, m_nNodeIndex, m_WhichIdSet ); pNewHstr = new SwHistorySetAttrSet( rSet, m_nNodeIndex, m_WhichIdSet );
} }
else else if (const SfxPoolItem* pItem = SfxItemIter( rSet ).FirstItem())
{ {
const SfxPoolItem* pItem = SfxItemIter( rSet ).FirstItem();
if ( m_WhichIdSet.count( pItem->Which() ) ) if ( m_WhichIdSet.count( pItem->Which() ) )
{ {
pNewHstr = new SwHistorySetFormat( pItem, m_nNodeIndex ); pNewHstr = new SwHistorySetFormat( pItem, m_nNodeIndex );
......
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