summaryrefslogtreecommitdiffstats
path: root/src/debug
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-15 17:02:56 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-18 12:27:01 +0000
commit004e50d84773242a000f5cadb89466bbc793e1a8 (patch)
tree019c32e65caa08fe7cf90b521787531a7b1d2225 /src/debug
parentRun clang-tidy’s modernize-use-nullptr pass. (diff)
downloadinkscape-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.h4
-rw-r--r--src/debug/heap.h2
-rw-r--r--src/debug/sysv-heap.h2
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;