diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-17 09:43:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-17 14:46:39 +0200 |
commit | c67b9a4ce5ac3a09437730d8440c84159b581622 (patch) | |
tree | eae4cb82c007fe228d85acb2432c3ceb1c6ef256 /sc/source/ui | |
parent | c8226655a8d838d15af7de3ba1fa5c47546b6ada (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.cxx | 4 |
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; |