equal
deleted
inserted
replaced
361 bool QLocalSocket::canReadLine() const |
361 bool QLocalSocket::canReadLine() const |
362 { |
362 { |
363 Q_D(const QLocalSocket); |
363 Q_D(const QLocalSocket); |
364 if (state() != ConnectedState) |
364 if (state() != ConnectedState) |
365 return false; |
365 return false; |
366 return (d->readBuffer.indexOf('\n') != -1 || QIODevice::canReadLine()); |
366 return (QIODevice::canReadLine() |
|
367 || d->readBuffer.indexOf('\n', d->actualReadBufferSize) != -1); |
367 } |
368 } |
368 |
369 |
369 void QLocalSocket::close() |
370 void QLocalSocket::close() |
370 { |
371 { |
371 Q_D(QLocalSocket); |
372 Q_D(QLocalSocket); |