QAbstractSocket::atEnd(): remove redundant checks
These checks are implemented in QIODevice::atEnd(). Change-Id: I056f05a59e2422ecbe7470557cb4ba03d98e5e45 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
899a815414
commit
bfecc2dbc6
@ -2373,7 +2373,7 @@ bool QAbstractSocket::isSequential() const
|
||||
*/
|
||||
bool QAbstractSocket::atEnd() const
|
||||
{
|
||||
return QIODevice::atEnd() && (!isOpen() || d_func()->buffer.isEmpty());
|
||||
return QIODevice::atEnd();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -176,7 +176,7 @@ public:
|
||||
// from QIODevice
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
bool isSequential() const Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE; // ### Qt6: remove me
|
||||
bool flush();
|
||||
|
||||
// for synchronous access
|
||||
|
Loading…
Reference in New Issue
Block a user