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/io/qiodevice.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])
     
    396396
    397397/*!
    398     Destructs the QIODevice object.
     398  The destructor is virtual, and QIODevice is an abstract base
     399  class. This destructor does not call close(), but the subclass
     400  destructor might. If you are in doubt, call close() before
     401  destroying the QIODevice.
    399402*/
    400403QIODevice::~QIODevice()
     
    14431446}
    14441447
     1448
     1449
     1450
     1451
     1452
     1453
     1454
     1455
     1456
     1457
     1458
     1459
     1460
     1461
     1462
     1463
     1464
     1465
     1466
     1467
     1468
     1469
     1470
     1471
     1472
     1473
     1474
     1475
     1476
    14451477/*! \fn bool QIODevice::getChar(char *c)
    14461478
     
    14771509qint64 QIODevice::peek(char *data, qint64 maxSize)
    14781510{
    1479     qint64 readBytes = read(data, maxSize);
    1480     int i = readBytes;
    1481     while (i > 0)
    1482         ungetChar(data[i-- - 1]);
    1483     return readBytes;
     1511    return d_func()->peek(data, maxSize);
    14841512}
    14851513
     
    15031531QByteArray QIODevice::peek(qint64 maxSize)
    15041532{
    1505     QByteArray result = read(maxSize);
    1506     int i = result.size();
    1507     const char *data = result.constData();
    1508     while (i > 0)
    1509         ungetChar(data[i-- - 1]);
    1510     return result;
     1533    return d_func()->peek(maxSize);
    15111534}
    15121535
Note: See TracChangeset for help on using the changeset viewer.