diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-13 15:30:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-14 09:16:06 +0200 |
commit | 0db25f68ab897953d9ca76ae094cc80e0ad11d34 (patch) | |
tree | 49113132a27fe96ebdcab497c9a2c8de796e54c4 /sfx2 | |
parent | e50b5526e24ff552def8f08d393037d2c020dc29 (diff) |
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
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sorgitm.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/control/sfxstatuslistener.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/statcach.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/statbar/stbitem.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/toolbox/tbxitem.cxx | 4 |
7 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/inc/sorgitm.hxx b/sfx2/inc/sorgitm.hxx index 2fd26ea698f1..8a72a5553442 100644 --- a/sfx2/inc/sorgitm.hxx +++ b/sfx2/inc/sorgitm.hxx @@ -37,7 +37,7 @@ public: virtual SfxPoolItem* Clone( SfxItemPool* pPool = NULL ) const SAL_OVERRIDE; virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE; - virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE; + virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE; OUString getLanguage() const { return aLanguage; }; }; 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::Sequence<beans::Propert #ifdef DBG_UTIL ++nFoundArgs; #endif - if( pItem->PutValue( 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::Sequence<beans::Propert #ifdef DBG_UTIL ++nFoundArgs; #endif - if( pItem->PutValue( rProp.Value ) ) + if( pItem->PutValue( rProp.Value, 0 ) ) // only use successfully converted items rSet.Put( *pItem ); #ifdef DBG_UTIL diff --git a/sfx2/source/control/sfxstatuslistener.cxx b/sfx2/source/control/sfxstatuslistener.cxx index cc75699e6c2a..8b1237256708 100644 --- a/sfx2/source/control/sfxstatuslistener.cxx +++ b/sfx2/source/control/sfxstatuslistener.cxx @@ -219,7 +219,7 @@ throw( RuntimeException, std::exception ) if ( pItem ) { pItem->SetWhich( m_nSlotID ); - pItem->PutValue( rEvent.State ); + pItem->PutValue( rEvent.State, 0 ); } else pItem = new SfxVoidItem( m_nSlotID ); diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx index b1b098d24eac..c96527a4f711 100644 --- a/sfx2/source/control/statcach.cxx +++ b/sfx2/source/control/statcach.cxx @@ -127,7 +127,7 @@ void SAL_CALL BindDispatch_Impl::statusChanged( const ::com::sun::star::frame:: if ( pItem ) { pItem->SetWhich( nId ); - pItem->PutValue( aAny ); + pItem->PutValue( aAny, 0 ); } else pItem = new SfxVoidItem( nId ); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index a1012553d815..928dcc55dcf6 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -3467,7 +3467,7 @@ void SfxBaseModel::setGrabBagItem(const com::sun::star::uno::Any& rVal) if (!m_pData->m_xGrabBagItem.get()) m_pData->m_xGrabBagItem.reset(new SfxGrabBagItem); - m_pData->m_xGrabBagItem->PutValue(rVal); + m_pData->m_xGrabBagItem->PutValue(rVal, 0); } static void GetCommandFromSequence( OUString& rCommand, sal_Int32& nIndex, const Sequence< beans::PropertyValue >& rSeqPropValue ) diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx index 5a1866120008..1a6a50530186 100644 --- a/sfx2/source/statbar/stbitem.cxx +++ b/sfx2/source/statbar/stbitem.cxx @@ -300,7 +300,7 @@ throw ( ::com::sun::star::uno::RuntimeException, std::exception ) if ( pItem ) { pItem->SetWhich( nSlotID ); - pItem->PutValue( rEvent.State ); + pItem->PutValue( rEvent.State, 0 ); } else pItem = new SfxVoidItem( nSlotID ); diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 8119b262e1ac..0a58943b2c30 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -546,7 +546,7 @@ throw ( ::com::sun::star::uno::RuntimeException, std::exception ) if ( pItem ) { pItem->SetWhich( nSlotId ); - pItem->PutValue( rEvent.State ); + pItem->PutValue( rEvent.State, 0 ); } else pItem = new SfxVoidItem( nSlotId ); @@ -875,7 +875,7 @@ throw ( ::com::sun::star::uno::RuntimeException, std::exception ) if ( pItem ) { pItem->SetWhich( nSlotId ); - pItem->PutValue( rEvent.State ); + pItem->PutValue( rEvent.State, 0 ); } else pItem = new SfxVoidItem( nSlotId ); |