Hello community,

here is the log from the commit of package kauth for openSUSE:Factory checked 
in at 2019-04-19 21:20:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kauth (Old)
 and      /work/SRC/openSUSE:Factory/.kauth.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kauth"

Fri Apr 19 21:20:58 2019 rev:70 rq:695201 version:5.57.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kauth/kauth.changes      2019-03-21 
09:44:21.410924405 +0100
+++ /work/SRC/openSUSE:Factory/.kauth.new.5536/kauth.changes    2019-04-19 
21:22:12.955708542 +0200
@@ -1,0 +2,14 @@
+Sun Apr 14 20:21:41 UTC 2019 - [email protected]
+
+- Update to 5.57.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/kde-frameworks-5.57.0.php
+- Changes since 5.56.0:
+  * Add const'ref
+  * [kauth] fix last foreach
+  * Improve code: Remove temp container just to iterate
+  * It compiles fine without deprecated method with qt 5.13
+  * Make it compile without foreach
+
+-------------------------------------------------------------------

Old:
----
  kauth-5.56.0.tar.xz

New:
----
  kauth-5.57.0.tar.xz

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

Other differences:
------------------
++++++ kauth.spec ++++++
--- /var/tmp/diff_new_pack.y6m5lx/_old  2019-04-19 21:22:13.387709092 +0200
+++ /var/tmp/diff_new_pack.y6m5lx/_new  2019-04-19 21:22:13.387709092 +0200
@@ -17,14 +17,14 @@
 
 
 %define lname   libKF5Auth5
-%define _tar_path 5.56
+%define _tar_path 5.57
 # 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:           kauth
-Version:        5.56.0
+Version:        5.57.0
 Release:        0
 Summary:        Framework which lets applications perform actions as a 
privileged user
 License:        LGPL-2.1-or-later

++++++ kauth-5.56.0.tar.xz -> kauth-5.57.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kauth-5.56.0/.gitignore new/kauth-5.57.0/.gitignore
--- old/kauth-5.56.0/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/kauth-5.57.0/.gitignore 2019-04-07 09:24:47.000000000 +0200
@@ -0,0 +1,21 @@
+# Ignore the following files
+*~
+*.[oa]
+*.diff
+*.kate-swp
+*.kdev4
+.kdev_include_paths
+*.kdevelop.pcs
+*.moc
+*.moc.cpp
+*.orig
+*.user
+.*.swp
+.swp.*
+Doxyfile
+Makefile
+avail
+random_seed
+/build*/
+CMakeLists.txt.user*
+*.unc-backup*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kauth-5.56.0/CMakeLists.txt 
new/kauth-5.57.0/CMakeLists.txt
--- old/kauth-5.56.0/CMakeLists.txt     2019-03-02 14:34:45.000000000 +0100
+++ new/kauth-5.57.0/CMakeLists.txt     2019-04-07 09:24:47.000000000 +0200
@@ -1,11 +1,11 @@
 cmake_minimum_required(VERSION 3.5)
 
-set(KF5_VERSION "5.56.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.56.0") # handled by release scripts
+set(KF5_VERSION "5.57.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.57.0") # handled by release scripts
 project(KAuth VERSION ${KF5_VERSION})
 
 include(FeatureSummary)
-find_package(ECM 5.56.0  NO_MODULE)
+find_package(ECM 5.57.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL 
"https://projects.kde.org/projects/kdesupport/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
@@ -53,7 +53,8 @@
 if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
     ecm_install_po_files_as_qm(po)
 endif()
-#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
+add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00)
+add_definitions(-DQT_NO_FOREACH)
 add_subdirectory(src)
 if(TARGET Qt5::Widgets)
     if (BUILD_TESTING)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kauth-5.56.0/po/id/kauth5_qt.po 
new/kauth-5.57.0/po/id/kauth5_qt.po
--- old/kauth-5.56.0/po/id/kauth5_qt.po 2019-03-02 14:34:45.000000000 +0100
+++ new/kauth-5.57.0/po/id/kauth5_qt.po 2019-04-07 09:24:47.000000000 +0200
@@ -16,7 +16,7 @@
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\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/kauth-5.56.0/po/te/kauth5_qt.po 
new/kauth-5.57.0/po/te/kauth5_qt.po
--- old/kauth-5.56.0/po/te/kauth5_qt.po 2019-03-02 14:34:45.000000000 +0100
+++ new/kauth-5.57.0/po/te/kauth5_qt.po 2019-04-07 09:24:47.000000000 +0200
@@ -22,8 +22,7 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "X-Generator: Lokalize 1.5\n"
-"Plural-Forms: nplurals=5; plural=n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : "
-"4;\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
 "X-Qt-Contexts: true\n"
 
 #: backends/dbus/DBusHelperProxy.cpp:83
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kauth-5.56.0/po/zh_CN/kauth5_qt.po 
new/kauth-5.57.0/po/zh_CN/kauth5_qt.po
--- old/kauth-5.56.0/po/zh_CN/kauth5_qt.po      2019-03-02 14:34:45.000000000 
+0100
+++ new/kauth-5.57.0/po/zh_CN/kauth5_qt.po      2019-04-07 09:24:47.000000000 
+0200
@@ -14,7 +14,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: kdeorg\n"
-"PO-Revision-Date: 2019-02-20 23:16\n"
+"PO-Revision-Date: 2019-03-07 09:22\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/kauth-5.56.0/src/BackendsManager.cpp 
new/kauth-5.57.0/src/BackendsManager.cpp
--- old/kauth-5.56.0/src/BackendsManager.cpp    2019-03-02 14:34:45.000000000 
+0100
+++ new/kauth-5.57.0/src/BackendsManager.cpp    2019-04-07 09:24:47.000000000 
+0200
@@ -74,7 +74,7 @@
     // Backend plugin
     const QList< QObject * > backends = 
retrieveInstancesIn(QFile::decodeName(KAUTH_BACKEND_PLUGIN_DIR));
 
-    Q_FOREACH (QObject *instance, backends) {
+    for (QObject *instance : backends) {
         auth = qobject_cast< KAuth::AuthBackend * >(instance);
         if (auth) {
             break;
@@ -84,7 +84,7 @@
     // Helper plugin
     const QList< QObject * > helpers = 
retrieveInstancesIn(QFile::decodeName(KAUTH_HELPER_PLUGIN_DIR));
 
-    Q_FOREACH (QObject *instance, helpers) {
+    for (QObject *instance : helpers) {
         helper = qobject_cast< KAuth::HelperProxy * >(instance);
         if (helper) {
             break;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kauth-5.56.0/src/backends/fake/kauth-policy-gen-polkit.cpp 
new/kauth-5.57.0/src/backends/fake/kauth-policy-gen-polkit.cpp
--- old/kauth-5.56.0/src/backends/fake/kauth-policy-gen-polkit.cpp      
2019-03-02 14:34:45.000000000 +0100
+++ new/kauth-5.57.0/src/backends/fake/kauth-policy-gen-polkit.cpp      
2019-04-07 09:24:47.000000000 +0200
@@ -38,7 +38,7 @@
 
 const char dent[] = "   ";
 
-void output(QList<Action> actions, const QMap<QString, QString> &domain)
+void output(const QList<Action> &actions, const QMap<QString, QString> &domain)
 {
     Q_UNUSED(domain)
 
@@ -47,10 +47,11 @@
 
     out << header;
 
-    foreach (const Action &action, actions) {
+    for (const Action &action : qAsConst(actions)) {
         out << dent << "<action id=\"" << action.name << "\" >\n";
 
-        foreach (const QString &lang, action.descriptions.keys()) {
+        const auto lstKeys = action.descriptions.keys();
+        for (const QString &lang : lstKeys) {
             out << dent << dent << "<description";
             if (lang != "en") {
                 out << " xml:lang=\"" << lang << '"';
@@ -58,7 +59,8 @@
             out << '>' << action.messages.value(lang) << "</description>\n";
         }
 
-        foreach (const QString &lang, action.messages.keys()) {
+        const auto lstMessagesKeys = action.messages.keys();
+        for (const QString &lang : lstMessagesKeys) {
             out << dent << dent << "<message";
             if (lang != "en") {
                 out << " xml:lang=\"" << lang << '"';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kauth-5.56.0/src/backends/mac/kauth-policy-gen-mac.cpp 
new/kauth-5.57.0/src/backends/mac/kauth-policy-gen-mac.cpp
--- old/kauth-5.56.0/src/backends/mac/kauth-policy-gen-mac.cpp  2019-03-02 
14:34:45.000000000 +0100
+++ new/kauth-5.57.0/src/backends/mac/kauth-policy-gen-mac.cpp  2019-04-07 
09:24:47.000000000 +0200
@@ -26,14 +26,14 @@
 
 using namespace std;
 
-void output(QList<Action> actions, const QMap<QString, QString> &domain)
+void output(const QList<Action> &actions, const QMap<QString, QString> &domain)
 {
     AuthorizationRef auth;
     AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, 
kAuthorizationFlagDefaults, &auth);
 
     OSStatus err;
 
-    foreach (const Action &action, actions) {
+    for (const Action &action : qAsConst(actions)) {
 
         err = AuthorizationRightGet(action.name.toLatin1().constData(), NULL);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kauth-5.56.0/src/backends/policykit/kauth-policy-gen-polkit.cpp 
new/kauth-5.57.0/src/backends/policykit/kauth-policy-gen-polkit.cpp
--- old/kauth-5.56.0/src/backends/policykit/kauth-policy-gen-polkit.cpp 
2019-03-02 14:34:45.000000000 +0100
+++ new/kauth-5.57.0/src/backends/policykit/kauth-policy-gen-polkit.cpp 
2019-04-07 09:24:47.000000000 +0200
@@ -39,7 +39,7 @@
 
 const char dent[] = "   ";
 
-void output(QList<Action> actions, const QMap<QString, QString> &domain)
+void output(const QList<Action> &actions, const QMap<QString, QString> &domain)
 {
     QTextStream out(stdout);
     out.setCodec("UTF-8");
@@ -65,7 +65,7 @@
         out << "<icon_name>" << domain[QLatin1String("icon")] << 
"</icon_name>\n";
     }
 
-    foreach (const Action &action, actions) {
+    for (const Action &action : qAsConst(actions)) {
         out << dent << "<action id=\"" << action.name << "\" >\n";
 
         for (QHash< QString, QString >::const_iterator i = 
action.messages.constBegin(); i != action.messages.constEnd(); ++i) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kauth-5.56.0/src/backends/polkit-1/Polkit1Backend.cpp 
new/kauth-5.57.0/src/backends/polkit-1/Polkit1Backend.cpp
--- old/kauth-5.56.0/src/backends/polkit-1/Polkit1Backend.cpp   2019-03-02 
14:34:45.000000000 +0100
+++ new/kauth-5.57.0/src/backends/polkit-1/Polkit1Backend.cpp   2019-04-07 
09:24:47.000000000 +0200
@@ -123,7 +123,7 @@
 void Polkit1Backend::updateCachedActions(const 
PolkitQt1::ActionDescription::List &actions)
 {
     m_knownActions.clear();
-    Q_FOREACH (const PolkitQt1::ActionDescription &action, actions) {
+    for (const PolkitQt1::ActionDescription &action : actions) {
         m_knownActions << action.actionId();
     }
     m_flyingActions = false;
@@ -200,10 +200,11 @@
 
 void Polkit1Backend::checkForResultChanged()
 {
-    Q_FOREACH (const QString &action, m_cachedResults.keys()) {
-        if (m_cachedResults[action] != actionStatus(action)) {
-            m_cachedResults[action] = actionStatus(action);
-            emit actionStatusChanged(action, m_cachedResults[action]);
+    for (auto it = m_cachedResults.begin(); it != m_cachedResults.end(); ++it) 
{
+        const QString action = it.key();
+        if (it.value() != actionStatus(action)) {
+            *it = actionStatus(action);
+            emit actionStatusChanged(action, *it);
         }
     }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kauth-5.56.0/src/backends/polkit-1/kauth-policy-gen-polkit1.cpp 
new/kauth-5.57.0/src/backends/polkit-1/kauth-policy-gen-polkit1.cpp
--- old/kauth-5.56.0/src/backends/polkit-1/kauth-policy-gen-polkit1.cpp 
2019-03-02 14:34:45.000000000 +0100
+++ new/kauth-5.57.0/src/backends/polkit-1/kauth-policy-gen-polkit1.cpp 
2019-04-07 09:24:47.000000000 +0200
@@ -39,7 +39,7 @@
 
 const char dent[] = "   ";
 
-void output(QList<Action> actions, const QMap<QString, QString> &domain)
+void output(const QList<Action> &actions, const QMap<QString, QString> &domain)
 {
     QTextStream out(stdout);
     out.setCodec("UTF-8");
@@ -64,7 +64,7 @@
         out << "<icon_name>" << domain[QLatin1String("icon")] << 
"</icon_name>\n";
     }
 
-    Q_FOREACH (const Action &action, actions) {
+    for (const Action &action : actions) {
         out << dent << "<action id=\"" << action.name << "\" >\n";
 
         // Not a typo, messages and descriptions are actually inverted
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kauth-5.56.0/src/policy-gen/policy-gen.cpp 
new/kauth-5.57.0/src/policy-gen/policy-gen.cpp
--- old/kauth-5.56.0/src/policy-gen/policy-gen.cpp      2019-03-02 
14:34:45.000000000 +0100
+++ new/kauth-5.57.0/src/policy-gen/policy-gen.cpp      2019-04-07 
09:24:47.000000000 +0200
@@ -79,7 +79,8 @@
     descriptionExp.setCaseSensitivity(Qt::CaseInsensitive);
     nameExp.setCaseSensitivity(Qt::CaseInsensitive);
 
-    Q_FOREACH (const QString &name, ini.childGroups()) {
+    const auto listChilds = ini.childGroups();
+    for (const QString &name : listChilds) {
         Action action;
 
         if (name == QLatin1String("Domain")) {
@@ -94,7 +95,8 @@
         action.name = name;
         ini.beginGroup(name);
 
-        Q_FOREACH (const QString &key, ini.childKeys()) {
+        const auto listChildKeys = ini.childKeys();
+        for (const QString &key : listChildKeys) {
             if (descriptionExp.exactMatch(key)) {
                 QString lang = descriptionExp.capturedTexts().at(1);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kauth-5.56.0/src/policy-gen/policy-gen.h 
new/kauth-5.57.0/src/policy-gen/policy-gen.h
--- old/kauth-5.56.0/src/policy-gen/policy-gen.h        2019-03-02 
14:34:45.000000000 +0100
+++ new/kauth-5.57.0/src/policy-gen/policy-gen.h        2019-04-07 
09:24:47.000000000 +0200
@@ -36,6 +36,6 @@
     QString persistence;
 };
 
-extern void output(QList<Action> actions, const QMap<QString, QString> 
&domain);
+extern void output(const QList<Action> &actions, const QMap<QString, QString> 
&domain);
 
 #endif


Reply via email to