summaryrefslogtreecommitdiffstats
path: root/src/line-geometry.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/line-geometry.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/line-geometry.cpp')
-rw-r--r--src/line-geometry.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/line-geometry.cpp b/src/line-geometry.cpp
index 6e0f82d45..822b24d59 100644
--- a/src/line-geometry.cpp
+++ b/src/line-geometry.cpp
@@ -38,22 +38,10 @@ Line::Line(Geom::Point const &start, Geom::Point const &vec, bool is_endpoint):
d0 = Geom::dot(normal, pt);
}
-Line::Line(Line const &line):
- pt(line.pt),
- v_dir(line.v_dir),
- normal(line.normal),
- d0(line.d0)
-{
-}
+Line::Line(Line const &line)
+= default;
-Line &Line::operator=(Line const &line) {
- pt = line.pt;
- v_dir = line.v_dir;
- normal = line.normal;
- d0 = line.d0;
-
- return *this;
-}
+Line &Line::operator=(Line const &line) = default;
boost::optional<Geom::Point> Line::intersect(Line const &line) {
Geom::Coord denom = Geom::dot(v_dir, line.normal);