summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-13 15:30:58 +0200
committerNoel Grandin <noel@peralex.com>2015-08-14 09:16:06 +0200
commit0db25f68ab897953d9ca76ae094cc80e0ad11d34 (patch)
tree49113132a27fe96ebdcab497c9a2c8de796e54c4 /reportdesign
parente50b5526e24ff552def8f08d393037d2c020dc29 (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 'reportdesign')
-rw-r--r--reportdesign/source/ui/misc/UITools.cxx2
-rw-r--r--reportdesign/source/ui/misc/statusbarcontroller.cxx4
-rw-r--r--reportdesign/source/ui/misc/toolboxcontroller.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx4
4 files changed, 6 insertions, 6 deletions
diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx
index 5d7d48852e4f..29b806314114 100644
--- a/reportdesign/source/ui/misc/UITools.cxx
+++ b/reportdesign/source/ui/misc/UITools.cxx
@@ -236,7 +236,7 @@ namespace
const vcl::Font aFont( lcl_getReportControlFont( _rxReportControlFormat, aControlFont,_nWhich ) );
SvxFontItem aFontItem(_nFont);
- aFontItem.PutValue( uno::makeAny( aControlFont ) );
+ aFontItem.PutValue( uno::makeAny( aControlFont ), 0 );
_rItemSet.Put(aFontItem);
_rItemSet.Put(SvxFontHeightItem(OutputDevice::LogicToLogic(Size(0, (sal_Int32)aFont.GetHeight()), MAP_POINT, MAP_TWIP).Height(),100,_nFontHeight));
diff --git a/reportdesign/source/ui/misc/statusbarcontroller.cxx b/reportdesign/source/ui/misc/statusbarcontroller.cxx
index 420f83f4b84b..a02814905d5d 100644
--- a/reportdesign/source/ui/misc/statusbarcontroller.cxx
+++ b/reportdesign/source/ui/misc/statusbarcontroller.cxx
@@ -138,7 +138,7 @@ void SAL_CALL OStatusbarController::statusChanged( const FeatureStateEvent& _aEv
if ( (_aEvent.State >>= aSeq) && aSeq.getLength() == 2 )
{
SvxZoomSliderItem aZoomSlider(100,20,400);
- aZoomSlider.PutValue(_aEvent.State);
+ aZoomSlider.PutValue(_aEvent.State, 0);
static_cast<SvxZoomSliderControl*>(m_rController.get())->StateChanged(m_nSlotId,SfxItemState::DEFAULT,&aZoomSlider);
}
}
@@ -148,7 +148,7 @@ void SAL_CALL OStatusbarController::statusChanged( const FeatureStateEvent& _aEv
if ( (_aEvent.State >>= aSeq) && aSeq.getLength() == 3 )
{
SvxZoomItem aZoom;
- aZoom.PutValue(_aEvent.State);
+ aZoom.PutValue(_aEvent.State, 0 );
static_cast<SvxZoomStatusBarControl*>(m_rController.get())->StateChanged(m_nSlotId,SfxItemState::DEFAULT,&aZoom);
}
}
diff --git a/reportdesign/source/ui/misc/toolboxcontroller.cxx b/reportdesign/source/ui/misc/toolboxcontroller.cxx
index 390c9b99c259..f7b9ebd041d8 100644
--- a/reportdesign/source/ui/misc/toolboxcontroller.cxx
+++ b/reportdesign/source/ui/misc/toolboxcontroller.cxx
@@ -206,7 +206,7 @@ void SAL_CALL OToolboxController::statusChanged( const FeatureStateEvent& Event
case SID_ATTR_CHAR_FONT:
{
SvxFontItem aItem(ITEMID_FONT);
- aItem.PutValue(Event.State);
+ aItem.PutValue(Event.State, 0);
static_cast<SvxFontNameToolBoxControl*>(m_pToolbarController.get())->StateChanged(m_nSlotId,Event.IsEnabled ? SfxItemState::DEFAULT : SfxItemState::DISABLED,&aItem);
}
break;
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index cb6803039c36..05f56baec358 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -1622,7 +1622,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
else if ( aArgs.getLength() == 1 && aArgs[0].Name == "Zoom" )
{
SvxZoomItem aZoomItem;
- aZoomItem.PutValue(aArgs[0].Value);
+ aZoomItem.PutValue(aArgs[0].Value, 0);
m_nZoomValue = aZoomItem.GetValue();
m_eZoomType = aZoomItem.GetType();
impl_zoom_nothrow();
@@ -1632,7 +1632,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
if ( aArgs.getLength() == 1 && aArgs[0].Name == "ZoomSlider" )
{
SvxZoomSliderItem aZoomSlider;
- aZoomSlider.PutValue(aArgs[0].Value);
+ aZoomSlider.PutValue(aArgs[0].Value, 0);
m_nZoomValue = aZoomSlider.GetValue();
m_eZoomType = SvxZoomType::PERCENT;
impl_zoom_nothrow();