summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-17 09:43:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-17 14:46:39 +0200
commitc67b9a4ce5ac3a09437730d8440c84159b581622 (patch)
treeeae4cb82c007fe228d85acb2432c3ceb1c6ef256 /sc/source/ui
parentc8226655a8d838d15af7de3ba1fa5c47546b6ada (diff)
rather return ref from GetCalendar
since we never return a nullptr Change-Id: I4cb4af99752818e323472a372330d1bc2a3df4f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122236 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index d092a5f60848..32c62ff367e8 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -925,8 +925,8 @@ void ScCheckListMenuControl::addDateMember(const OUString& rsName, double nVal,
sal_uInt16 nDay = aDate.GetDay();
// Get the localized month name list.
- CalendarWrapper* pCalendar = ScGlobal::GetCalendar();
- uno::Sequence<i18n::CalendarItem2> aMonths = pCalendar->getMonths();
+ CalendarWrapper& rCalendar = ScGlobal::GetCalendar();
+ uno::Sequence<i18n::CalendarItem2> aMonths = rCalendar.getMonths();
if (aMonths.getLength() < nMonth)
return;