summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-08-13 14:27:22 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-08-13 14:27:22 (GMT)
commit7b63a2e6b444c53153e4ba6aaeeacb49dc519949 (patch)
treec7177d4a9875481d3bd4c94c7b0b0cc30ab67130
parentab548999e35929d570f268ef924ef67bad3e06e9 (diff)
Unify ctors, make explicit
-rw-r--r--tools/osm-simplify/BaseClipper.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/osm-simplify/BaseClipper.cpp b/tools/osm-simplify/BaseClipper.cpp
index cf26745..9e6fce6 100644
--- a/tools/osm-simplify/BaseClipper.cpp
+++ b/tools/osm-simplify/BaseClipper.cpp
@@ -20,13 +20,7 @@
class LinkedPoint {
public:
- LinkedPoint(const QPointF& point) : m_point(point),
- m_isEntering(false), m_isLeaving(false),
- m_nextBasePolygonPoint(nullptr), m_nextClipPolygonPoint(nullptr),
- m_processed(false)
- {}
-
- LinkedPoint(const QPointF& point, bool isEntering, bool isLeaving) : m_point(point),
+ explicit LinkedPoint(const QPointF& point, bool isEntering=false, bool isLeaving=false) : m_point(point),
m_isEntering(isEntering), m_isLeaving(isLeaving),
m_nextBasePolygonPoint(nullptr), m_nextClipPolygonPoint(nullptr),
m_processed(false)