mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
clean: add override
to satisfy clang's Winconsistent-missing-override
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
This commit is contained in:
parent
d4cc838652
commit
6efdb09b1a
|
@ -42,38 +42,38 @@ public:
|
||||||
delete baseReply;
|
delete baseReply;
|
||||||
}
|
}
|
||||||
|
|
||||||
void close()
|
void close() override
|
||||||
{
|
{
|
||||||
baseReply->close();
|
baseReply->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
// QIODevice virtual functions
|
// QIODevice virtual functions
|
||||||
qint64 bytesAvailable() const;
|
qint64 bytesAvailable() const override;
|
||||||
bool atEnd() const override
|
bool atEnd() const override
|
||||||
{
|
{
|
||||||
return baseReply->atEnd();
|
return baseReply->atEnd();
|
||||||
}
|
}
|
||||||
qint64 bytesToWrite() const
|
qint64 bytesToWrite() const override
|
||||||
{
|
{
|
||||||
return baseReply->bytesToWrite();
|
return baseReply->bytesToWrite();
|
||||||
}
|
}
|
||||||
bool canReadLine() const
|
bool canReadLine() const override
|
||||||
{
|
{
|
||||||
return baseReply->canReadLine();
|
return baseReply->canReadLine();
|
||||||
}
|
}
|
||||||
bool isSequential() const
|
bool isSequential() const override
|
||||||
{
|
{
|
||||||
return baseReply->isSequential();
|
return baseReply->isSequential();
|
||||||
}
|
}
|
||||||
bool waitForReadyRead( int msecs )
|
bool waitForReadyRead( int msecs ) override
|
||||||
{
|
{
|
||||||
return baseReply->waitForReadyRead( msecs );
|
return baseReply->waitForReadyRead( msecs );
|
||||||
}
|
}
|
||||||
bool waitForBytesWritten( int msecs )
|
bool waitForBytesWritten( int msecs ) override
|
||||||
{
|
{
|
||||||
return baseReply->waitForBytesWritten( msecs );
|
return baseReply->waitForBytesWritten( msecs );
|
||||||
}
|
}
|
||||||
bool reset()
|
bool reset() override
|
||||||
{
|
{
|
||||||
return baseReply->reset();
|
return baseReply->reset();
|
||||||
}
|
}
|
||||||
|
@ -82,37 +82,37 @@ public slots:
|
||||||
void applyError( QNetworkReply::NetworkError code );
|
void applyError( QNetworkReply::NetworkError code );
|
||||||
|
|
||||||
// Redirect QNetworkReply slots
|
// Redirect QNetworkReply slots
|
||||||
virtual void abort()
|
void abort() override
|
||||||
{
|
{
|
||||||
baseReply->abort();
|
baseReply->abort();
|
||||||
}
|
}
|
||||||
virtual void ignoreSslErrors()
|
void ignoreSslErrors() override
|
||||||
{
|
{
|
||||||
baseReply->ignoreSslErrors();
|
baseReply->ignoreSslErrors();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// QNetworkReply virtual functions
|
// QNetworkReply virtual functions
|
||||||
void ignoreSslErrorsImplementation( const QList< QSslError > & errors )
|
void ignoreSslErrorsImplementation( const QList< QSslError > & errors ) override
|
||||||
{
|
{
|
||||||
baseReply->ignoreSslErrors( errors );
|
baseReply->ignoreSslErrors( errors );
|
||||||
}
|
}
|
||||||
void setSslConfigurationImplementation( const QSslConfiguration & configuration )
|
void setSslConfigurationImplementation( const QSslConfiguration & configuration ) override
|
||||||
{
|
{
|
||||||
baseReply->setSslConfiguration( configuration );
|
baseReply->setSslConfiguration( configuration );
|
||||||
}
|
}
|
||||||
void sslConfigurationImplementation( QSslConfiguration & configuration ) const
|
void sslConfigurationImplementation( QSslConfiguration & configuration ) const override
|
||||||
{
|
{
|
||||||
configuration = baseReply->sslConfiguration();
|
configuration = baseReply->sslConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
// QIODevice virtual functions
|
// QIODevice virtual functions
|
||||||
qint64 readData( char * data, qint64 maxSize );
|
qint64 readData( char * data, qint64 maxSize ) override;
|
||||||
qint64 readLineData( char * data, qint64 maxSize )
|
qint64 readLineData( char * data, qint64 maxSize ) override
|
||||||
{
|
{
|
||||||
return baseReply->readLine( data, maxSize );
|
return baseReply->readLine( data, maxSize );
|
||||||
}
|
}
|
||||||
qint64 writeData( const char * data, qint64 maxSize )
|
qint64 writeData( const char * data, qint64 maxSize ) override
|
||||||
{
|
{
|
||||||
return baseReply->write( data, maxSize );
|
return baseReply->write( data, maxSize );
|
||||||
}
|
}
|
||||||
|
@ -178,10 +178,10 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual qint64 bytesAvailable() const;
|
virtual qint64 bytesAvailable() const override;
|
||||||
bool atEnd() const override;
|
bool atEnd() const override;
|
||||||
virtual void abort() {}
|
virtual void abort() override {}
|
||||||
virtual qint64 readData( char * data, qint64 maxSize );
|
virtual qint64 readData( char * data, qint64 maxSize ) override;
|
||||||
|
|
||||||
// We use the hackery below to work around the fact that we need to emit
|
// We use the hackery below to work around the fact that we need to emit
|
||||||
// ready/finish signals after we've been constructed.
|
// ready/finish signals after we've been constructed.
|
||||||
|
|
|
@ -107,7 +107,7 @@ public:
|
||||||
string const & dictionaryId_,
|
string const & dictionaryId_,
|
||||||
QNetworkAccessManager & mgr );
|
QNetworkAccessManager & mgr );
|
||||||
|
|
||||||
virtual void cancel();
|
void cancel() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
string const & dictionaryId_,
|
string const & dictionaryId_,
|
||||||
QNetworkAccessManager & mgr );
|
QNetworkAccessManager & mgr );
|
||||||
|
|
||||||
virtual void cancel();
|
void cancel() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ public:
|
||||||
void setAudioLink( QString audioLink );
|
void setAudioLink( QString audioLink );
|
||||||
QString getAudioLink() const;
|
QString getAudioLink() const;
|
||||||
|
|
||||||
virtual QSize minimumSizeHint() const;
|
QSize minimumSizeHint() const override;
|
||||||
void clearContent();
|
void clearContent();
|
||||||
|
|
||||||
~ArticleView();
|
~ArticleView();
|
||||||
|
|
Loading…
Reference in a new issue