diff options
| author | 2016-04-30 18:34:55 +0100 | |
|---|---|---|
| committer | 2016-04-30 18:50:44 +0100 | |
| commit | a37bd1dfeb81c8cd44453e186a43c1b29883ab49 (patch) | |
| tree | 29338a8f291b8fb05d924938f4bbc8df8be5a09f /src/modules/objects/qthttp | |
| parent | Apply clang-tidy: modernize-use-override (diff) | |
| download | KVIrc-a37bd1dfeb81c8cd44453e186a43c1b29883ab49.tar.gz KVIrc-a37bd1dfeb81c8cd44453e186a43c1b29883ab49.tar.bz2 KVIrc-a37bd1dfeb81c8cd44453e186a43c1b29883ab49.zip | |
Apply clang-tidy: modernize-use-default
Diffstat (limited to 'src/modules/objects/qthttp')
| -rw-r--r-- | src/modules/objects/qthttp/qhttp.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modules/objects/qthttp/qhttp.cpp b/src/modules/objects/qthttp/qhttp.cpp index 1f22a67ee..dbecaa42e 100644 --- a/src/modules/objects/qthttp/qhttp.cpp +++ b/src/modules/objects/qthttp/qhttp.cpp @@ -76,8 +76,7 @@ public: id = idCounter.fetchAndAddRelaxed(1); } virtual ~QHttpRequest() - { - } + = default; virtual void start(QHttp *) = 0; virtual bool hasRequestHeader(); @@ -324,9 +323,7 @@ public: { } - ~QHttpPGHRequest() override - { - } + ~QHttpPGHRequest() override = default; void start(QHttp *) override; }; @@ -536,7 +533,7 @@ class QHttpHeaderPrivate { Q_DECLARE_PUBLIC(QHttpHeader) public: - inline virtual ~QHttpHeaderPrivate() {} + inline virtual ~QHttpHeaderPrivate() = default; QList<QPair<QString, QString>> values; bool valid; @@ -662,8 +659,7 @@ QHttpHeader::QHttpHeader(QHttpHeaderPrivate & dd, const QHttpHeader & header) Destructor. */ QHttpHeader::~QHttpHeader() -{ -} + = default; /*! Assigns \a h and returns a reference to this http header. |
