diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 17:02:56 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | 004e50d84773242a000f5cadb89466bbc793e1a8 (patch) | |
| tree | 019c32e65caa08fe7cf90b521787531a7b1d2225 /src/debug | |
| parent | Run clang-tidy’s modernize-use-nullptr pass. (diff) | |
| download | inkscape-004e50d84773242a000f5cadb89466bbc793e1a8.tar.gz inkscape-004e50d84773242a000f5cadb89466bbc793e1a8.zip | |
Run clang-tidy’s modernize-use-equals-default pass.
This replaces empty constructors and destructors with the default
keyword.
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/event.h | 4 | ||||
| -rw-r--r-- | src/debug/heap.h | 2 | ||||
| -rw-r--r-- | src/debug/sysv-heap.h | 2 |
3 files changed, 4 insertions, 4 deletions
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; |
