summaryrefslogtreecommitdiff
path: root/svtools/workben/svdem.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-03-29 18:14:00 +0200
committerMichael Stahl <mstahl@redhat.com>2012-04-02 23:15:20 +0200
commite5a916eeeed8e79a3d105040f3fb832134bf7b32 (patch)
tree64ae3ff9d126936a8b52fa1546667028f33593db /svtools/workben/svdem.cxx
parent2f657dd568ce30ec9132892080c63578e4132908 (diff)
Convert tools/table.hxx usage to std::set in Calendar class in svtools module
Also change the API slightly, removing GetSelectedData(int index) and replacing it with GetLastSelectedDate(), since the only usage of GetSelectedData in the codebase only needed to get the last date.
Diffstat (limited to 'svtools/workben/svdem.cxx')
-rw-r--r--svtools/workben/svdem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/workben/svdem.cxx b/svtools/workben/svdem.cxx
index abb28ac584cc..7aede1c44da2 100644
--- a/svtools/workben/svdem.cxx
+++ b/svtools/workben/svdem.cxx
@@ -1006,7 +1006,7 @@ IMPL_LINK( MyWin, CalSelectHdl, CalendarField*, pCtrl )
if ( pCtrl == &aCalendarField )
{
Calendar* l_pCalendar = pCtrl->GetCalendar();
- aCalendarField2.SetDate( l_pCalendar->GetSelectDate( l_pCalendar->GetSelectDateCount()-1 ) );
+ aCalendarField2.SetDate( l_pCalendar->GetLastSelectDate() );
}
return 0;