Changeset 846 for trunk/src/qt3support/tools/q3gcache.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
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/qt3support/tools/q3gcache.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 227 227 { return Q3GDict::remove_ascii((const char *)item->key,item); } 228 228 bool remove_int(Q3CacheItem *item) 229 { return Q3GDict::remove_int(( long)item->key,item);}229 { return Q3GDict::remove_int((quintptr)item->key,item);} 230 230 231 231 void statistics() { Q3GDict::statistics(); } … … 427 427 dict->insert_ascii(key, ci); 428 428 else 429 dict->insert_int(( long)key, ci);429 dict->insert_int((quintptr)key, ci); 430 430 tCost += cost; 431 431 return true; … … 487 487 ci = dict->take_ascii(key); 488 488 else 489 ci = dict->take_int(( long)key);489 ci = dict->take_int((quintptr)key); 490 490 Item d; 491 491 if (ci) { … … 564 564 { 565 565 Q3CacheItem *ci = keytype == AsciiKey ? dict->find_ascii(key) 566 : dict->find_int(( long)key);566 : dict->find_int((quintptr)key); 567 567 #if defined(QT_DEBUG) 568 568 lruList->finds++; … … 812 812 { 813 813 Q3CacheItem *item = it->current(); 814 return item ? ( long)item->key : 0;814 return item ? (quintptr)item->key : 0; 815 815 } 816 816
Note:
See TracChangeset
for help on using the changeset viewer.