From bf057fab3c0d17bf2832c8d9fc6d34b1b859e660 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:24:53 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I0f2f81dae91f62639e79799b1bed1b2df1fd79ab --- svl/source/items/itemprop.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svl/source/items/itemprop.cxx') diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index 66951f1340c0..a815405a1afb 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -84,7 +84,7 @@ const SfxItemPropertySimpleEntry* SfxItemPropertyMap::getByName( const OUString { SfxItemPropertyHashMap_t::const_iterator aIter = m_pImpl->find(rName); if( aIter == m_pImpl->end() ) - return 0; + return nullptr; return &aIter->second; } @@ -178,7 +178,7 @@ void SfxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry& rEn throw(RuntimeException) { // get the SfxPoolItem - const SfxPoolItem* pItem = 0; + const SfxPoolItem* pItem = nullptr; SfxItemState eState = rSet.GetItemState( rEntry.nWID, true, &pItem ); if(SfxItemState::SET != eState && SFX_WHICH_MAX > rEntry.nWID ) pItem = &rSet.GetPool()->GetDefaultItem(rEntry.nWID); @@ -192,7 +192,7 @@ void SfxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry& rEn SfxItemSet aSet(*rSet.GetPool(), rEntry.nWID, rEntry.nWID); if(0 == (rEntry.nFlags & PropertyAttribute::MAYBEVOID)) throw RuntimeException( - "Property not found in ItemSet but not MAYBEVOID?", 0); + "Property not found in ItemSet but not MAYBEVOID?", nullptr); } @@ -232,7 +232,7 @@ void SfxItemPropertySet::setPropertyValue( const SfxItemPropertySimpleEntry& rEn IllegalArgumentException) { // get the SfxPoolItem - const SfxPoolItem* pItem = 0; + const SfxPoolItem* pItem = nullptr; std::unique_ptr pNewItem; SfxItemState eState = rSet.GetItemState( rEntry.nWID, true, &pItem ); if(SfxItemState::SET != eState && SFX_WHICH_MAX > rEntry.nWID ) -- cgit