From 004e50d84773242a000f5cadb89466bbc793e1a8 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 19:02:56 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-equals-defau?= =?UTF-8?q?lt=20pass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces empty constructors and destructors with the default keyword. --- src/debug/event.h | 4 ++-- src/debug/heap.h | 2 +- src/debug/sysv-heap.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/debug') diff --git a/src/debug/event.h b/src/debug/event.h index 2d3751ff5..1ddcb8b55 100644 --- a/src/debug/event.h +++ b/src/debug/event.h @@ -21,7 +21,7 @@ namespace Debug { class Event { public: - virtual ~Event() {} + virtual ~Event() = default; enum Category { CORE=0, @@ -39,7 +39,7 @@ public: struct PropertyPair { public: - PropertyPair() {} + PropertyPair() = default; PropertyPair(Util::ptr_shared n, Util::ptr_shared v) : name(n), value(v) {} PropertyPair(char const *n, Util::ptr_shared v) diff --git a/src/debug/heap.h b/src/debug/heap.h index d7d39efb9..959578893 100644 --- a/src/debug/heap.h +++ b/src/debug/heap.h @@ -21,7 +21,7 @@ namespace Debug { class Heap { public: - virtual ~Heap() {} + virtual ~Heap() = default; struct Stats { std::size_t size; diff --git a/src/debug/sysv-heap.h b/src/debug/sysv-heap.h index baab0af5f..6f95b74c4 100644 --- a/src/debug/sysv-heap.h +++ b/src/debug/sysv-heap.h @@ -19,7 +19,7 @@ namespace Debug { class SysVHeap : public Heap { public: - SysVHeap() {} + SysVHeap() = default; int features() const override; -- cgit v1.2.3