diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 6e0634ac3b..b927bf1ead 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -774,10 +774,10 @@ Q_OUTOFLINE_TEMPLATE QList::~QList() template Q_OUTOFLINE_TEMPLATE bool QList::operator==(const QList &l) const { - if (p.size() != l.p.size()) - return false; if (d == l.d) return true; + if (p.size() != l.p.size()) + return false; Node *i = reinterpret_cast(p.end()); Node *b = reinterpret_cast(p.begin()); Node *li = reinterpret_cast(l.p.end());