Changeset 846 for trunk/src/corelib/io/qiodevice.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/corelib/io/qiodevice.cpp
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]) … … 396 396 397 397 /*! 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. 399 402 */ 400 403 QIODevice::~QIODevice() … … 1443 1446 } 1444 1447 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 1445 1477 /*! \fn bool QIODevice::getChar(char *c) 1446 1478 … … 1477 1509 qint64 QIODevice::peek(char *data, qint64 maxSize) 1478 1510 { 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); 1484 1512 } 1485 1513 … … 1503 1531 QByteArray QIODevice::peek(qint64 maxSize) 1504 1532 { 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); 1511 1534 } 1512 1535
Note:
See TracChangeset
for help on using the changeset viewer.