diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-08 22:39:49 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-09 00:25:23 +0200 |
commit | ec00f4ed642344364b6de7afa3f03501fec05994 (patch) | |
tree | 483f01f6864692d4551b8eb175166912863816c5 | |
parent | bf51da67987aee9c626a5d3627e8c2ab8df1e7fd (diff) |
Replace array with initializer list in QuickHelpData::FillStrArr
1e4fa857873c0bc728143087ec692c4b75aaf820 follow-up
Change-Id: I788d3516d363820d6d49d7443ad99640bd3248bd
Reviewed-on: https://gerrit.libreoffice.org/75244
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index efd52d8ab2c9..692b1acddca0 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -5967,11 +5967,7 @@ void QuickHelpData::FillStrArr( SwWrtShell const & rSh, const OUString& rWord ) (*pCalendar)->LoadDefaultCalendar( rSh.GetCurLang() ); // Add matching calendar month and day names - const std::array<uno::Sequence<i18n::CalendarItem2>, 2> aCalendarItems = { - (*pCalendar)->getMonths(), - (*pCalendar)->getDays() - }; - for ( const auto& aNames : aCalendarItems ) + for ( const auto& aNames : { (*pCalendar)->getMonths(), (*pCalendar)->getDays() } ) { for ( const auto& rName : aNames ) { @@ -6056,7 +6052,6 @@ void QuickHelpData::FillStrArr( SwWrtShell const & rSh, const OUString& rWord ) m_aHelpStrings.push_back( aCompletedString ); } } - } namespace { |