diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-10-04 15:05:38 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-12 10:48:13 +0000 |
commit | 3c99f8500f657ed84b316390d5175a6f5e56bc69 (patch) | |
tree | 749f16652560a50d409b12a23bf1a5d93b3cd2d5 /chart2/source/controller/dialogs/tp_AxisPositions.cxx | |
parent | valgrind: fix leak (diff) | |
download | core-3c99f8500f657ed84b316390d5175a6f5e56bc69.tar.gz core-3c99f8500f657ed84b316390d5175a6f5e56bc69.zip |
convert Link<> to typed
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb
Reviewed-on: https://gerrit.libreoffice.org/19305
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source/controller/dialogs/tp_AxisPositions.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/tp_AxisPositions.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/chart2/source/controller/dialogs/tp_AxisPositions.cxx b/chart2/source/controller/dialogs/tp_AxisPositions.cxx index 62e6e35719b9..590c7543c4dd 100644 --- a/chart2/source/controller/dialogs/tp_AxisPositions.cxx +++ b/chart2/source/controller/dialogs/tp_AxisPositions.cxx @@ -198,7 +198,7 @@ void AxisPositionsTabPage::Reset(const SfxItemSet* rInAttrs) if( nPos < m_pLB_CrossesAt->GetEntryCount() ) m_pLB_CrossesAt->SelectEntryPos( nPos ); - CrossesAtSelectHdl( nullptr ); + CrossesAtSelectHdl( *m_pLB_CrossesAt ); if( rInAttrs->GetItemState(SCHATTR_AXIS_POSITION_VALUE,true, &pPoolItem)== SfxItemState::SET || bZero ) { @@ -231,7 +231,7 @@ void AxisPositionsTabPage::Reset(const SfxItemSet* rInAttrs) } else m_pLB_PlaceLabels->SetNoSelection(); - PlaceLabelsSelectHdl( nullptr ); + PlaceLabelsSelectHdl( *m_pLB_PlaceLabels ); // Tick marks long nTicks = 0, nMinorTicks = 0; @@ -313,7 +313,7 @@ void AxisPositionsTabPage::SupportAxisPositioning( bool bSupportAxisPositioning m_bSupportAxisPositioning = bSupportAxisPositioning; } -IMPL_LINK_NOARG(AxisPositionsTabPage, CrossesAtSelectHdl) +IMPL_LINK_NOARG_TYPED(AxisPositionsTabPage, CrossesAtSelectHdl, ListBox&, void) { sal_Int32 nPos = m_pLB_CrossesAt->GetSelectEntryPos(); m_pED_CrossesAt->Show( (2==nPos) && !m_bCrossingAxisIsCategoryAxis ); @@ -324,11 +324,10 @@ IMPL_LINK_NOARG(AxisPositionsTabPage, CrossesAtSelectHdl) if( 0 == m_pED_CrossesAtCategory->GetSelectEntryCount() ) m_pED_CrossesAtCategory->SelectEntryPos(0); - PlaceLabelsSelectHdl( nullptr ); - return 0; + PlaceLabelsSelectHdl( *m_pLB_PlaceLabels ); } -IMPL_LINK_NOARG(AxisPositionsTabPage, PlaceLabelsSelectHdl) +IMPL_LINK_NOARG_TYPED(AxisPositionsTabPage, PlaceLabelsSelectHdl, ListBox&, void) { sal_Int32 nLabelPos = m_pLB_PlaceLabels->GetSelectEntryPos(); @@ -340,8 +339,6 @@ IMPL_LINK_NOARG(AxisPositionsTabPage, PlaceLabelsSelectHdl) bEnableTickmarkPlacement=false; } m_pBxPlaceTicks->Enable(bEnableTickmarkPlacement); - - return 0; } } //namespace chart |