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/xml | |
| 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/xml')
| -rw-r--r-- | src/xml/event.h | 2 | ||||
| -rw-r--r-- | src/xml/node-observer.h | 4 | ||||
| -rw-r--r-- | src/xml/node.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/xml/event.h b/src/xml/event.h index b11cbe9cb..8c7a40327 100644 --- a/src/xml/event.h +++ b/src/xml/event.h @@ -57,7 +57,7 @@ class Event : public Inkscape::GC::Managed<Inkscape::GC::SCANNED, Inkscape::GC::MANUAL> { public: - virtual ~Event() {} + virtual ~Event() = default; /** * @brief Pointer to the next event in the event chain diff --git a/src/xml/node-observer.h b/src/xml/node-observer.h index 28c492d66..295d618b5 100644 --- a/src/xml/node-observer.h +++ b/src/xml/node-observer.h @@ -53,9 +53,9 @@ class Node; class NodeObserver { protected: /* the constructor is protected to prevent instantiation */ - NodeObserver() {} + NodeObserver() = default; public: - virtual ~NodeObserver() {} + virtual ~NodeObserver() = default; // FIXME: somebody needs to learn what "pure virtual" means diff --git a/src/xml/node.h b/src/xml/node.h index 3f19e8fa1..32c5837ae 100644 --- a/src/xml/node.h +++ b/src/xml/node.h @@ -77,8 +77,8 @@ enum NodeType { */ class Node : public Inkscape::GC::Anchored { public: - Node() {} - ~Node() override {} + Node() = default; + ~Node() override = default; /** * @name Retrieve information about the node |
