From 0db25f68ab897953d9ca76ae094cc80e0ad11d34 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Aug 2015 15:30:58 +0200 Subject: remove default value from SfxPoolItem::PutValue more useful to make it explicit. Specifically, otherwise my defaultvalue clang plugin would want to remove lots of places that contains #define constants which, while technically the same as the default value, convey semantic information which is quite useful. Change-Id: I918ad5b0e73ba279fa1b1489b62d900339ff71eb --- sfx2/source/appl/appuno.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2/source/appl/appuno.cxx') diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 4c3e83b45919..69eead54a5f0 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -339,7 +339,7 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::SequencePutValue( rProp.Value ) ) + if( pItem->PutValue( rProp.Value, 0 ) ) // only use successfully converted items rSet.Put( *pItem ); #ifdef DBG_UTIL @@ -368,7 +368,7 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::SequencePutValue( rProp.Value ) ) + if( pItem->PutValue( rProp.Value, 0 ) ) // only use successfully converted items rSet.Put( *pItem ); #ifdef DBG_UTIL -- cgit