mirror of https://github.com/aria2/aria2
clang-modernize -add-override on headers
parent
e2700f50a5
commit
3b9988251f
|
@ -126,7 +126,7 @@ public:
|
||||||
|
|
||||||
virtual bool getCumulative() const CXX11_OVERRIDE;
|
virtual bool getCumulative() const CXX11_OVERRIDE;
|
||||||
|
|
||||||
virtual void setCumulative(bool f);
|
virtual void setCumulative(bool f) CXX11_OVERRIDE;
|
||||||
|
|
||||||
enum Flag {
|
enum Flag {
|
||||||
FLAG_HIDDEN = 1,
|
FLAG_HIDDEN = 1,
|
||||||
|
|
|
@ -46,7 +46,7 @@ class AbstractProxyResponseCommand : public AbstractCommand {
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<HttpConnection> httpConnection_;
|
std::shared_ptr<HttpConnection> httpConnection_;
|
||||||
protected:
|
protected:
|
||||||
virtual bool executeInternal();
|
virtual bool executeInternal() CXX11_OVERRIDE;
|
||||||
|
|
||||||
const std::shared_ptr<HttpConnection>& getHttpConnection() const
|
const std::shared_ptr<HttpConnection>& getHttpConnection() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -81,7 +81,7 @@ public:
|
||||||
|
|
||||||
virtual ~Exception() throw();
|
virtual ~Exception() throw();
|
||||||
|
|
||||||
virtual const char* what() const throw();
|
virtual const char* what() const throw() CXX11_OVERRIDE;
|
||||||
|
|
||||||
std::string stackTrace() const;
|
std::string stackTrace() const;
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ private:
|
||||||
public:
|
public:
|
||||||
HandshakeExtensionMessage();
|
HandshakeExtensionMessage();
|
||||||
|
|
||||||
virtual std::string getPayload();
|
virtual std::string getPayload() CXX11_OVERRIDE;
|
||||||
|
|
||||||
virtual uint8_t getExtensionMessageID() const CXX11_OVERRIDE
|
virtual uint8_t getExtensionMessageID() const CXX11_OVERRIDE
|
||||||
{
|
{
|
||||||
|
|
|
@ -85,7 +85,7 @@ private:
|
||||||
#endif // ENABLE_MESSAGE_DIGEST
|
#endif // ENABLE_MESSAGE_DIGEST
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool executeInternal();
|
bool executeInternal() CXX11_OVERRIDE;
|
||||||
|
|
||||||
bool shouldInflateContentEncoding(HttpResponse* httpResponse);
|
bool shouldInflateContentEncoding(HttpResponse* httpResponse);
|
||||||
|
|
||||||
|
|
|
@ -68,16 +68,16 @@ public:
|
||||||
// wrapper for fclose
|
// wrapper for fclose
|
||||||
int close();
|
int close();
|
||||||
// wrapper for fflush
|
// wrapper for fflush
|
||||||
int flush();
|
int flush() CXX11_OVERRIDE;
|
||||||
// Return true if file is opened && feof(fp_) != 0. Otherwise
|
// Return true if file is opened && feof(fp_) != 0. Otherwise
|
||||||
// returns false.
|
// returns false.
|
||||||
bool eof();
|
bool eof();
|
||||||
// Returns true if file supports ANSI color escape codes.
|
// Returns true if file supports ANSI color escape codes.
|
||||||
bool supportsColor();
|
bool supportsColor() CXX11_OVERRIDE;
|
||||||
// Convenient method. Read data to end of file and write them into
|
// Convenient method. Read data to end of file and write them into
|
||||||
// given stream. Returns written size.
|
// given stream. Returns written size.
|
||||||
size_t transfer(std::ostream& out);
|
size_t transfer(std::ostream& out);
|
||||||
int vprintf(const char* format, va_list va);
|
int vprintf(const char* format, va_list va) CXX11_OVERRIDE;
|
||||||
// Mode for reading
|
// Mode for reading
|
||||||
static const char READ[];
|
static const char READ[];
|
||||||
// Mode for writing
|
// Mode for writing
|
||||||
|
|
Loading…
Reference in New Issue