Changeset 846 for trunk/src/corelib/tools/qhash.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/corelib/tools/qhash.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/corelib/tools/qhash.h
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 300 300 inline bool isDetached() const { return d->ref == 1; } 301 301 inline void setSharable(bool sharable) { if (!sharable) detach(); d->sharable = sharable; } 302 302 303 303 304 void clear(); … … 589 590 { 590 591 if (d != other.d) { 591 other.d->ref.ref(); 592 QHashData *o = other.d; 593 o->ref.ref(); 592 594 if (!d->ref.deref()) 593 595 freeData(d); 594 d = o ther.d;596 d = o; 595 597 if (!d->sharable) 596 598 detach_helper(); … … 625 627 { 626 628 QList<Key> res; 629 627 630 const_iterator i = begin(); 628 631 if (i != end()) { … … 644 647 { 645 648 QList<Key> res; 649 646 650 const_iterator i = begin(); 647 651 while (i != end()) { … … 688 692 { 689 693 QList<T> res; 694 690 695 const_iterator i = begin(); 691 696 while (i != end()) {
Note:
See TracChangeset
for help on using the changeset viewer.
