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/preferences.h | |
| 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/preferences.h')
| -rw-r--r-- | src/preferences.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/preferences.h b/src/preferences.h index 9ac007528..ac9a268a6 100644 --- a/src/preferences.h +++ b/src/preferences.h @@ -28,7 +28,7 @@ namespace Inkscape { class ErrorReporter { public: - virtual ~ErrorReporter() {} + virtual ~ErrorReporter() = default; virtual void handleError(Glib::ustring const& primary, Glib::ustring const& secondary ) const = 0; }; @@ -121,9 +121,9 @@ public: class Entry { friend class Preferences; // Preferences class has to access _value public: - ~Entry() {} + ~Entry() = default; Entry() : _pref_path(""), _value(nullptr) {} // needed to enable use in maps - Entry(Entry const &other) : _pref_path(other._pref_path), _value(other._value) {} + Entry(Entry const &other) = default; /** * Check whether the received entry is valid. |
