Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/corelib/tools/qhash.h

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    300300    inline bool isDetached() const { return d->ref == 1; }
    301301    inline void setSharable(bool sharable) { if (!sharable) detach(); d->sharable = sharable; }
     302
    302303
    303304    void clear();
     
    589590{
    590591    if (d != other.d) {
    591         other.d->ref.ref();
     592        QHashData *o = other.d;
     593        o->ref.ref();
    592594        if (!d->ref.deref())
    593595            freeData(d);
    594         d = other.d;
     596        d = o;
    595597        if (!d->sharable)
    596598            detach_helper();
     
    625627{
    626628    QList<Key> res;
     629
    627630    const_iterator i = begin();
    628631    if (i != end()) {
     
    644647{
    645648    QList<Key> res;
     649
    646650    const_iterator i = begin();
    647651    while (i != end()) {
     
    688692{
    689693    QList<T> res;
     694
    690695    const_iterator i = begin();
    691696    while (i != end()) {
Note: See TracChangeset for help on using the changeset viewer.