Fix compiler warning in QNetworkReply test
Clang warning: 'isSequential' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] Change-Id: I1a7c5516d2656469eab556e7f9d310192510b99b Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
faab8f603d
commit
f2e5621451
@ -208,8 +208,8 @@ public:
|
|||||||
DataGenerator() : state(Idle)
|
DataGenerator() : state(Idle)
|
||||||
{ open(ReadOnly); }
|
{ open(ReadOnly); }
|
||||||
|
|
||||||
virtual bool isSequential() const { return true; }
|
bool isSequential() const override { return true; }
|
||||||
virtual qint64 bytesAvailable() const { return state == Started ? 1024*1024 : 0; }
|
qint64 bytesAvailable() const override { return state == Started ? 1024*1024 : 0; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void start() { state = Started; emit readyRead(); }
|
void start() { state = Started; emit readyRead(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user