summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-27 14:59:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-27 22:11:58 +0200
commit1325d8161a74a3cedc169952eca10f4343e700c4 (patch)
tree16a084086ecf14d0b6febfea22e4905349809abe /i18npool
parent452fcbe0792aa10042bb8cd2cfd6cd29ca754be5 (diff)
loplugin:moveopt
An attempt that did not find anything convincing enough to finish it up and make it permanently active. So just leave it in /store for now. Change-Id: I1750e177655a4a510da100f880ba81bf762be277 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114742 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/localedata.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 273415d9461e..8bc822936b7b 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -719,10 +719,9 @@ Sequence< CalendarItem2 > LocaleDataImpl::getCalendarItems(
case REF_PMONTHS:
for (CalendarItem2& rItem : aItems)
{
- CalendarItem2 item{ OUString(allCalendars[rnOffset]),
+ rItem = CalendarItem2{ OUString(allCalendars[rnOffset]),
OUString(allCalendars[rnOffset+1]),
OUString(allCalendars[rnOffset+2]), OUString(allCalendars[rnOffset+3])};
- rItem = item;
rnOffset += 4;
}
break;
@@ -730,10 +729,9 @@ Sequence< CalendarItem2 > LocaleDataImpl::getCalendarItems(
// Absent narrow name.
for (CalendarItem2& rItem : aItems)
{
- CalendarItem2 item{ OUString(allCalendars[rnOffset]),
+ rItem = CalendarItem2{ OUString(allCalendars[rnOffset]),
OUString(allCalendars[rnOffset+1]),
OUString(allCalendars[rnOffset+2]), OUString()};
- rItem = item;
rnOffset += 3;
}
break;