summaryrefslogtreecommitdiffstats
path: root/src/snapped-line.cpp
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/snapped-line.cpp
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/snapped-line.cpp')
-rw-r--r--src/snapped-line.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/snapped-line.cpp b/src/snapped-line.cpp
index 8a307783a..149ceb16d 100644
--- a/src/snapped-line.cpp
+++ b/src/snapped-line.cpp
@@ -45,8 +45,7 @@ Inkscape::SnappedLineSegment::SnappedLineSegment()
Inkscape::SnappedLineSegment::~SnappedLineSegment()
-{
-}
+= default;
Inkscape::SnappedPoint Inkscape::SnappedLineSegment::intersect(SnappedLineSegment const &line) const
{
@@ -123,8 +122,7 @@ Inkscape::SnappedLine::SnappedLine()
}
Inkscape::SnappedLine::~SnappedLine()
-{
-}
+= default;
Inkscape::SnappedPoint Inkscape::SnappedLine::intersect(SnappedLine const &line) const
{