Hello community,

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

Package is "krunner"

Fri Apr 19 21:24:10 2019 rev:63 rq:695248 version:5.57.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/krunner/krunner.changes  2019-03-21 
09:48:11.446871407 +0100
+++ /work/SRC/openSUSE:Factory/.krunner.new.5536/krunner.changes        
2019-04-19 21:24:12.383860642 +0200
@@ -1,0 +2,10 @@
+Sun Apr 14 20:21:44 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:
+  * [krunners] compile without foreach
+
+-------------------------------------------------------------------

Old:
----
  krunner-5.56.0.tar.xz

New:
----
  krunner-5.57.0.tar.xz

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

Other differences:
------------------
++++++ krunner.spec ++++++
--- /var/tmp/diff_new_pack.Tc6dNL/_old  2019-04-19 21:24:12.895861295 +0200
+++ /var/tmp/diff_new_pack.Tc6dNL/_new  2019-04-19 21:24:12.895861295 +0200
@@ -17,13 +17,13 @@
 
 
 %define lname   libKF5Runner5
-%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}')}
 Name:           krunner
-Version:        5.56.0
+Version:        5.57.0
 Release:        0
 Summary:        Plugins responsible for better integration of Qt applications 
in KDE Workspace
 License:        LGPL-2.1-or-later

++++++ krunner-5.56.0.tar.xz -> krunner-5.57.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/krunner-5.56.0/.gitignore 
new/krunner-5.57.0/.gitignore
--- old/krunner-5.56.0/.gitignore       1970-01-01 01:00:00.000000000 +0100
+++ new/krunner-5.57.0/.gitignore       2019-04-07 09:20:15.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/krunner-5.56.0/CMakeLists.txt 
new/krunner-5.57.0/CMakeLists.txt
--- old/krunner-5.56.0/CMakeLists.txt   2019-03-02 14:29:21.000000000 +0100
+++ new/krunner-5.57.0/CMakeLists.txt   2019-04-07 09:20:15.000000000 +0200
@@ -1,12 +1,12 @@
 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(KRunner VERSION ${KF5_VERSION})
 
 # ECM setup
 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,6 +53,7 @@
     list(APPEND CMAKE_AUTOMOC_MACRO_NAMES ${KRunner_AUTOMOC_MACRO_NAMES})
 endif()
 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00)
+add_definitions(-DQT_NO_FOREACH)
 
 # Subdirectories
 add_subdirectory(src)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/krunner-5.56.0/src/declarative/runnermodel.cpp 
new/krunner-5.57.0/src/declarative/runnermodel.cpp
--- old/krunner-5.56.0/src/declarative/runnermodel.cpp  2019-03-02 
14:29:21.000000000 +0100
+++ new/krunner-5.57.0/src/declarative/runnermodel.cpp  2019-04-07 
09:20:15.000000000 +0200
@@ -147,8 +147,8 @@
     } else if (role == Actions) {
         QVariantList actions;
         Plasma::QueryMatch amatch = m_matches.at(index.row());
-        QList<QAction*> theactions = m_manager->actionsForMatch(amatch);
-        foreach(QAction* action, theactions) {
+        const QList<QAction*> theactions = m_manager->actionsForMatch(amatch);
+        for (QAction* action : theactions) {
             actions += qVariantFromValue<QObject*>(action);
         }
         return actions;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/krunner-5.56.0/src/runnercontext.cpp 
new/krunner-5.57.0/src/runnercontext.cpp
--- old/krunner-5.56.0/src/runnercontext.cpp    2019-03-02 14:29:21.000000000 
+0100
+++ new/krunner-5.57.0/src/runnercontext.cpp    2019-04-07 09:20:15.000000000 
+0200
@@ -395,7 +395,7 @@
     }
 
     LOCK_FOR_WRITE(d)
-    foreach (QueryMatch match, matches) {
+    for (QueryMatch match : matches) {
         // Give previously launched matches a slight boost in relevance
         // The boost smoothly saturates to 0.5;
         if (int count = d->launchCounts.value(match.id())) {
@@ -454,7 +454,7 @@
     QList<const QueryMatch*> presentMatchList;
 
     LOCK_FOR_READ(d)
-    foreach(const QString &matchId, matchIdList) {
+    for (const QString &matchId : matchIdList) {
         const QueryMatch* match = d->matchesById.value(matchId, nullptr);
         if (match) {
             presentMatchList << match;
@@ -468,10 +468,10 @@
     }
 
     LOCK_FOR_WRITE(d)
-    foreach(const QueryMatch *match, presentMatchList) {
+    for (const QueryMatch *match : qAsConst(presentMatchList)) {
         d->matches.removeAll(*match);
     }
-    foreach(const QString &matchId, presentMatchIdList) {
+    for (const QString &matchId : qAsConst(presentMatchIdList)) {
         d->matchesById.remove(matchId);
     }
     UNLOCK(d)
@@ -510,7 +510,7 @@
     QList<QueryMatch> presentMatchList;
 
     LOCK_FOR_READ(d)
-    foreach(const QueryMatch &match, d->matches) {
+    for(const QueryMatch &match : qAsConst(d->matches)) {
         if (match.runner() == runner) {
             presentMatchList << match;
         }
@@ -522,7 +522,7 @@
     }
 
     LOCK_FOR_WRITE(d)
-    foreach (const QueryMatch &match, presentMatchList) {
+    for (const QueryMatch &match : qAsConst(presentMatchList)) {
         d->matchesById.remove(match.id());
         d->matches.removeAll(match);
     }
@@ -568,7 +568,7 @@
     const QStringList cfgList = config.readEntry("LaunchCounts", 
QStringList());
 
     const QRegExp r(QStringLiteral("(\\d*) (.*)"));
-    foreach (const QString& entry, cfgList) {
+    for (const QString& entry : cfgList) {
         r.indexIn(entry);
         int count = r.cap(1).toInt();
         QString id = r.cap(2);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/krunner-5.56.0/src/runnermanager.cpp 
new/krunner-5.57.0/src/runnermanager.cpp
--- old/krunner-5.56.0/src/runnermanager.cpp    2019-03-02 14:29:21.000000000 
+0100
+++ new/krunner-5.57.0/src/runnermanager.cpp    2019-04-07 09:20:15.000000000 
+0200
@@ -363,7 +363,7 @@
 
         if (searchJobs.isEmpty() && oldSearchJobs.isEmpty()) {
             if (allRunnersPrepped) {
-                foreach (AbstractRunner *runner, runners) {
+                for (AbstractRunner *runner : qAsConst(runners)) {
                     emit runner->teardown();
                 }
 
@@ -717,7 +717,7 @@
             d->singleRunnerPrepped = true;
         }
     } else {
-        foreach (AbstractRunner *runner, d->runners) {
+        for (AbstractRunner *runner : qAsConst(d->runners)) {
 #ifdef MEASURE_PREPTIME
             QTime t;
             t.start();
@@ -794,7 +794,7 @@
         runable = d->runners;
     }
 
-    foreach (Plasma::AbstractRunner *r, runable) {
+    for (Plasma::AbstractRunner *r : qAsConst(runable)) {
         if (r->isMatchingSuspended()) {
             continue;
         }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/krunner-5.56.0/src/runnersyntax.cpp 
new/krunner-5.57.0/src/runnersyntax.cpp
--- old/krunner-5.56.0/src/runnersyntax.cpp     2019-03-02 14:29:21.000000000 
+0100
+++ new/krunner-5.57.0/src/runnersyntax.cpp     2019-04-07 09:20:15.000000000 
+0200
@@ -73,7 +73,7 @@
 {
     QStringList queries;
     const QString termDesc(QLatin1Char('<') + searchTermDescription() + 
QLatin1Char('>'));
-    foreach (QString query, d->exampleQueries) {
+    for (QString query : qAsConst(d->exampleQueries)) {
         queries << query.replace(QStringLiteral(":q:"), termDesc);
     }
 


Reply via email to