From a9a1095ff8929e7c0e6b69e246a5a32ad3da17a9 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sat, 15 Oct 2011 14:34:35 -0500 Subject: [PATCH] revert qlist.h commit that seems to induce crashes in qDeleteAll::clea + template + Q_OUTOFLINE_TEMPLATE int QList::removeAll(const T &_t) + { +- int index = indexOf(_t); +- if (index == -1) +- return 0; +- ++ detachShared(); + const T t = _t; +- detach(); +- +- Node *i = reinterpret_cast(p.at(index)); +- Node *e = reinterpret_cast(p.end()); +- Node *n = i; +- node_destruct(i); +- while (++i != e) { +- if (i->t() == t) +- node_destruct(i); +- else +- *n++ = *i; +- } +- +- int removedCount = e - n; +- d->end -= removedCount; ++ int removedCount=0, i=0; ++ Node *n; ++ while (i < p.size()) ++ if ((n = reinterpret_cast(p.at(i)))->t() == t) { ++ node_destruct(n); ++ p.remove(i); ++ ++removedCount; ++ } else { ++ ++i; ++ } + return removedCount; + } + diff --git a/qt.spec b/qt.spec index aba3bf3..0e01b24 100644 --- a/qt.spec +++ b/qt.spec @@ -11,7 +11,7 @@ Summary: Qt toolkit Name: qt Epoch: 1 Version: 4.8.0 -Release: 0.14.rc1%{?dist} +Release: 0.15.rc1%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT @@ -76,6 +76,9 @@ Patch67: qt-everywhere-opensource-src-4.8.0-beta1-s390.patch # -Wall + -Werror = fail Patch68: webkit-qtwebkit-2.2-no_Werror.patch +# revert qlist.h commit that seems to induce crashes in qDeleteAll 4.8.0-0.15.rc1 +- revert qlist.h commit that seems to induce crashes in qDeleteAll 4.8.0-0.14.rc1 - pkgconfig-style deps