Doc: Update due to renaming QTextStream::readLine() overload
readLine() overload was renamed into readLineInto() in 21674735ccd029c17dc8b36211e9b5bc3595ba34. Change-Id: Iebd4c4e42ef4579c02ca38d7e41d00c3032130d8 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
71cc35c8e3
commit
cf452e20f9
@ -51,7 +51,7 @@ if (data.open(QFile::WriteOnly | QFile::Truncate)) {
|
|||||||
//! [1]
|
//! [1]
|
||||||
QTextStream stream(stdin);
|
QTextStream stream(stdin);
|
||||||
QString line;
|
QString line;
|
||||||
while (stream.readLine(&line)) {
|
while (stream.readLineInto(&line)) {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
//! [1]
|
//! [1]
|
||||||
|
@ -1612,7 +1612,7 @@ QString QTextStream::readLine(qint64 maxlen)
|
|||||||
|
|
||||||
If \a line has sufficient capacity for the data that is about to be
|
If \a line has sufficient capacity for the data that is about to be
|
||||||
read, this function may not need to allocate new memory. Because of
|
read, this function may not need to allocate new memory. Because of
|
||||||
this, it can be faster than the other readLine() overload.
|
this, it can be faster than readLine().
|
||||||
|
|
||||||
Returns \c false if the stream has read to the end of the file or
|
Returns \c false if the stream has read to the end of the file or
|
||||||
an error has occurred; otherwise returns \c true. The contents in
|
an error has occurred; otherwise returns \c true. The contents in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user