summaryrefslogtreecommitdiffstats
path: root/src/livarot
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/livarot
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/livarot')
-rw-r--r--src/livarot/float-line.cpp3
-rw-r--r--src/livarot/path-description.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/livarot/float-line.cpp b/src/livarot/float-line.cpp
index e5350edc6..aa2db08fc 100644
--- a/src/livarot/float-line.cpp
+++ b/src/livarot/float-line.cpp
@@ -24,8 +24,7 @@ FloatLigne::FloatLigne()
FloatLigne::~FloatLigne()
-{
-}
+= default;
/// Reset the line to empty (boundaries and runs).
void FloatLigne::Reset()
diff --git a/src/livarot/path-description.h b/src/livarot/path-description.h
index ed978d4c2..5ded5167e 100644
--- a/src/livarot/path-description.h
+++ b/src/livarot/path-description.h
@@ -27,7 +27,7 @@ struct PathDescr
{
PathDescr() : flags(0), associated(-1), tSt(0), tEn(1) {}
PathDescr(int f) : flags(f), associated(-1), tSt(0), tEn(1) {}
- virtual ~PathDescr() {}
+ virtual ~PathDescr() = default;
int getType() const { return flags & descr_type_mask; }
void setType(int t) {