Kaydet (Commit) 94e4f13d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

SfxItemSet::PutDirect return value is unused

Change-Id: Icf3e09318677655897f4a5308f066829982b9520
üst ae08fcea
......@@ -66,7 +66,7 @@ protected:
// Notification-Callback
virtual void Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew );
int PutDirect(const SfxPoolItem &rItem);
void PutDirect(const SfxPoolItem &rItem);
public:
SfxItemSet( const SfxItemSet& );
......
......@@ -1563,7 +1563,7 @@ SfxItemSet *SfxItemSet::Clone(bool bItems, SfxItemPool *pToPool ) const
: new SfxItemSet(*m_pPool, m_pWhichRanges);
}
int SfxItemSet::PutDirect(const SfxPoolItem &rItem)
void SfxItemSet::PutDirect(const SfxPoolItem &rItem)
{
SfxItemArray ppFnd = m_pItems;
const sal_uInt16* pPtr = m_pWhichRanges;
......@@ -1582,7 +1582,7 @@ int SfxItemSet::PutDirect(const SfxPoolItem &rItem)
if( pOld ) // One already present
{
if( rItem == **ppFnd )
return sal_False; // Already present!
return; // Already present!
m_pPool->Remove( *pOld );
}
else
......@@ -1598,12 +1598,11 @@ int SfxItemSet::PutDirect(const SfxPoolItem &rItem)
rItem.AddRef();
}
return sal_True;
return;
}
ppFnd += *(pPtr+1) - *pPtr + 1;
pPtr += 2;
}
return sal_False;
}
sal_Int32 SfxItemSet::getHash() const
......
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