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/qsharedpointer.cpp

    r651 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])
     
    6868    QSharedPointer and QWeakPointer are thread-safe and operate
    6969    atomically on the pointer value. Different threads can also access
    70     the same QSharedPointer or QWeakPointer object at the same time
    71     without need for locking mechanisms.
     70    the
     71    without need for locking mechanisms.
    7272
    7373    It should be noted that, while the pointer value can be accessed
     
    396396    \section1 Tracking QObject
    397397
    398     QWeakPointer can be used to track deletion classes derives from QObject,
     398    QWeakPointer can be used to track deletion classes from QObject,
    399399    even if they are not managed by QSharedPointer. When used in that role,
    400400    QWeakPointer replaces the older QPointer in all use-cases. QWeakPointer
     
    483483    another QSharedPointer object or deleted outside this object.
    484484
    485     The \a deleter paramter specifies the custom deleter for this
     485    The \a deleter paramter specifies the custom deleter for this
    486486    object. The custom deleter is called when the strong reference
    487487    count drops to 0 instead of the operator delete(). This is useful,
     
    11641164
    11651165    \brief The qSharedPointerObjectCast function is for casting a shared pointer.
    1166    
     1166
    11671167    Returns a shared pointer to the pointer held by \a other, using a
    11681168    \l qobject_cast() to type \tt X to obtain an internal pointer of the
     
    14331433
    14341434    //qDebug("Adding d=%p value=%p", d_ptr, ptr);
    1435    
     1435
    14361436    const void *other_d_ptr = kp->dataPointers.value(ptr, 0);
    14371437    if (other_d_ptr) {
Note: See TracChangeset for help on using the changeset viewer.