sw/source/uibase/docvw/edtwin.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit ec00f4ed642344364b6de7afa3f03501fec05994
Author:     Arkadiy Illarionov <qar...@gmail.com>
AuthorDate: Mon Jul 8 22:39:49 2019 +0300
Commit:     Arkadiy Illarionov <qar...@gmail.com>
CommitDate: Tue Jul 9 00:25:23 2019 +0200

    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.kagan...@collabora.com>

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 {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to