Hello community,

here is the log from the commit of package kholidays for openSUSE:Factory 
checked in at 2019-03-21 09:45:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kholidays (Old)
 and      /work/SRC/openSUSE:Factory/.kholidays.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kholidays"

Thu Mar 21 09:45:44 2019 rev:46 rq:686741 version:5.56.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kholidays/kholidays.changes      2019-02-28 
21:30:08.621797850 +0100
+++ /work/SRC/openSUSE:Factory/.kholidays.new.28833/kholidays.changes   
2019-03-21 09:45:46.578904783 +0100
@@ -1,0 +2,12 @@
+Sun Mar 10 20:15:36 UTC 2019 - [email protected]
+
+- Update to 5.56.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/kde-frameworks-5.56.0.php
+- Changes since 5.55.0:
+  * Rename as REQUIRED_QT_VERSION. All other module use it
+  * Make it compiles without foreach
+  * I don't know why it's not sync with other modules.
+
+-------------------------------------------------------------------

Old:
----
  kholidays-5.55.0.tar.xz

New:
----
  kholidays-5.56.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kholidays.spec ++++++
--- /var/tmp/diff_new_pack.o5LjP1/_old  2019-03-21 09:45:47.842904492 +0100
+++ /var/tmp/diff_new_pack.o5LjP1/_new  2019-03-21 09:45:47.866904486 +0100
@@ -17,14 +17,14 @@
 
 
 %define lname   libKF5Holidays5
-%define _tar_path 5.55
+%define _tar_path 5.56
 # Full KF5 version (e.g. 5.33.0)
 %{!?_kf5_version: %global _kf5_version %{version}}
 # Last major and minor KF5 version (e.g. 5.33)
 %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | 
awk -F. '{print $1"."$2}')}
 %bcond_without lang
 Name:           kholidays
-Version:        5.55.0
+Version:        5.56.0
 Release:        0
 Summary:        Holiday calculation library
 License:        LGPL-2.1-or-later

++++++ kholidays-5.55.0.tar.xz -> kholidays-5.56.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kholidays-5.55.0/CMakeLists.txt 
new/kholidays-5.56.0/CMakeLists.txt
--- old/kholidays-5.55.0/CMakeLists.txt 2019-02-03 00:57:19.000000000 +0100
+++ new/kholidays-5.56.0/CMakeLists.txt 2019-03-02 14:40:23.000000000 +0100
@@ -1,9 +1,9 @@
 cmake_minimum_required(VERSION 3.5)
 
-set(KF5_VERSION "5.55.0")
+set(KF5_VERSION "5.56.0")
 project(KHolidays VERSION ${KF5_VERSION})
 
-find_package(ECM 5.55.0 REQUIRED NO_MODULE)
+find_package(ECM 5.56.0 REQUIRED NO_MODULE)
 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
 set(CMAKE_AUTORCC ON)
 
@@ -32,13 +32,13 @@
 add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. 
Qt Assistant, Qt Creator & KDevelop)")
 
 ########### Find packages ###########
-set(QT_REQUIRED_VERSION 5.8.0)
-find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Qml)
+set(REQUIRED_QT_VERSION 5.10.0)
+find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Qml)
 
 remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII)
 
-
 ########### Targets ###########
+add_definitions(-DQT_NO_FOREACH)
 add_subdirectory(src)
 
 if(BUILD_TESTING)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kholidays-5.55.0/autotests/testholidayregion.cpp 
new/kholidays-5.56.0/autotests/testholidayregion.cpp
--- old/kholidays-5.55.0/autotests/testholidayregion.cpp        2019-02-03 
00:57:19.000000000 +0100
+++ new/kholidays-5.56.0/autotests/testholidayregion.cpp        2019-03-02 
14:40:23.000000000 +0100
@@ -44,10 +44,10 @@
     qDebug() << "";
 }
 
-void HolidayRegionTest::printHolidays(KHolidays::Holiday::List holidays)
+void HolidayRegionTest::printHolidays(const KHolidays::Holiday::List &holidays)
 {
     if (!holidays.isEmpty()) {
-        foreach (const KHolidays::Holiday &holiday, holidays) {
+        for (const KHolidays::Holiday &holiday : holidays) {
             qDebug() << "Date = " << 
holiday.observedStartDate().toString(Qt::ISODate)
                      << " Duration = " << holiday.duration()
                      << " Name = " << holiday.name();
@@ -139,15 +139,15 @@
 void HolidayRegionTest::testRegions()
 {
     qDebug() << "Available region codes:";
-    QStringList regionCodes = KHolidays::HolidayRegion::regionCodes();
-    foreach (const QString &regionCode, regionCodes) {
+    const QStringList regionCodes = KHolidays::HolidayRegion::regionCodes();
+    for (const QString &regionCode : regionCodes) {
         KHolidays::HolidayRegion testRegion(regionCode);
         qDebug() << regionCode << " = " << testRegion.name();
     }
     qDebug() << "";
 
     qDebug() << "This years holidays:";
-    foreach (const QString &regionCode, regionCodes) {
+    for (const QString &regionCode : regionCodes) {
         KHolidays::HolidayRegion testRegion(regionCode);
         printMetadata(testRegion);
         parseRegionCalendarYear(testRegion, QDate::currentDate().year());
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kholidays-5.55.0/autotests/testholidayregion.h 
new/kholidays-5.56.0/autotests/testholidayregion.h
--- old/kholidays-5.55.0/autotests/testholidayregion.h  2019-02-03 
00:57:19.000000000 +0100
+++ new/kholidays-5.56.0/autotests/testholidayregion.h  2019-03-02 
14:40:23.000000000 +0100
@@ -42,7 +42,7 @@
 
 private:
     void printMetadata(const KHolidays::HolidayRegion &region);
-    void printHolidays(KHolidays::Holiday::List holidays);
+    void printHolidays(const KHolidays::Holiday::List &holidays);
     void parseRegionCalendarYear(const KHolidays::HolidayRegion &region, int 
year,
                                  const QString &calendarType = "gregorian");
     void parseRegionDateRange(const KHolidays::HolidayRegion &region, const 
QDate &startDate, const QDate &endDate);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kholidays-5.55.0/po/id/libkholidays5_qt.po 
new/kholidays-5.56.0/po/id/libkholidays5_qt.po
--- old/kholidays-5.55.0/po/id/libkholidays5_qt.po      2019-02-03 
00:57:19.000000000 +0100
+++ new/kholidays-5.56.0/po/id/libkholidays5_qt.po      2019-03-02 
14:40:23.000000000 +0100
@@ -9,7 +9,7 @@
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
 "X-Generator: Lokalize 2.0\n"
 "X-Qt-Contexts: true\n"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kholidays-5.55.0/po/zh_CN/libkholidays5_qt.po 
new/kholidays-5.56.0/po/zh_CN/libkholidays5_qt.po
--- old/kholidays-5.55.0/po/zh_CN/libkholidays5_qt.po   2019-02-03 
00:57:19.000000000 +0100
+++ new/kholidays-5.56.0/po/zh_CN/libkholidays5_qt.po   2019-03-02 
14:40:23.000000000 +0100
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: kdeorg\n"
-"PO-Revision-Date: 2019-01-27 22:57\n"
+"PO-Revision-Date: 2019-02-20 23:16\n"
 "Last-Translator: guoyunhe <[email protected]>\n"
 "Language-Team: Chinese Simplified\n"
 "Language: zh_CN\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kholidays-5.55.0/src/holidayregion.cpp 
new/kholidays-5.56.0/src/holidayregion.cpp
--- old/kholidays-5.55.0/src/holidayregion.cpp  2019-02-03 00:57:19.000000000 
+0100
+++ new/kholidays-5.56.0/src/holidayregion.cpp  2019-03-02 14:40:23.000000000 
+0100
@@ -1128,7 +1128,7 @@
             languageSubdivisionAndLanguageMatch, languageSubdivisionOnlyMatch;
 
     const QStringList regionList = KHolidays::HolidayRegion::regionCodes();
-    foreach (const QString &regionCode, regionList) {
+    for (const QString &regionCode : regionList) {
         QString regionCountry = 
KHolidays::HolidayRegion::countryCode(regionCode).toLower();
         QString regionSubdivisionCountry;
         if (regionCountry.split(QLatin1Char('-')).count() > 1) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kholidays-5.55.0/src/parsers/plan2/holidayparserdriverplan.cpp 
new/kholidays-5.56.0/src/parsers/plan2/holidayparserdriverplan.cpp
--- old/kholidays-5.55.0/src/parsers/plan2/holidayparserdriverplan.cpp  
2019-02-03 00:57:19.000000000 +0100
+++ new/kholidays-5.56.0/src/parsers/plan2/holidayparserdriverplan.cpp  
2019-03-02 14:40:23.000000000 +0100
@@ -95,7 +95,7 @@
 void HolidayParserDriverPlan::parse()
 {
     // Parse the file using every calendar system in the file
-    foreach (const QString &calendarType, m_fileCalendarTypes) {
+    for (const QString &calendarType : qAsConst(m_fileCalendarTypes)) {
 
         // Cater for events defined in other Calendar Systems where request 
year could cover 2 or 3 event years
         // Perhaps also parse year before and year after to allow events to 
span years or shift to other year?
@@ -337,7 +337,7 @@
 // Return the jd of an existing event, assumes unique names and correct order 
in file
 int HolidayParserDriverPlan::julianDayFromEventName(const QString &eventName)
 {
-    foreach (const KHolidays::Holiday &thisHoliday, m_resultList) {
+    for (const KHolidays::Holiday &thisHoliday : qAsConst(m_resultList)) {
         if (thisHoliday.name() == eventName) {
             return thisHoliday.observedStartDate().toJulianDay();
         }


Reply via email to