Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 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.cpp

    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])
     
    6565{
    6666    uint h = 0;
    67     uint g;
    6867
    6968    while (n--) {
    7069        h = (h << 4) + *p++;
    71         g = h & 0xf0000000;
    72         h ^= g >> 23;
    73         h &= ~g;
     70        h ^= (h & 0xf0000000) >> 23;
     71        h &= 0x0fffffff;
    7472    }
    7573    return h;
     
    7977{
    8078    uint h = 0;
    81     uint g;
    8279
    8380    while (n--) {
    8481        h = (h << 4) + (*p++).unicode();
    85         g = h & 0xf0000000;
    86         h ^= g >> 23;
    87         h &= ~g;
     82        h ^= (h & 0xf0000000) >> 23;
     83        h &= 0x0fffffff;
    8884    }
    8985    return h;
     
    848844*/
    849845
     846
     847
     848
     849
     850
    850851/*! \fn void QHash::clear()
    851852
     
    16661667    operator<<().
    16671668
    1668     \sa {Format of the QDataStream operators}
     1669    \sa {s}
    16691670*/
    16701671
     
    16771678    operator>>().
    16781679
    1679     \sa {Format of the QDataStream operators}
     1680    \sa {s}
    16801681*/
    16811682
Note: See TracChangeset for help on using the changeset viewer.