diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-20 16:20:04 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-03-02 14:36:30 -0800 |
commit | a7b7f3d44297608121dba975586e838f03b6c3c5 (patch) | |
tree | a042500a02ede843fc17b5c278ca3a6f7608876e /src/mbgl/geometry/anchor.hpp | |
parent | c461dad5eecb17d963c5dcce5db9db28e74f0429 (diff) | |
download | qtlocation-mapboxgl-a7b7f3d44297608121dba975586e838f03b6c3c5.tar.gz |
[core] Fix whitespace; no need for explicit on multi-parameter constructors
Diffstat (limited to 'src/mbgl/geometry/anchor.hpp')
-rw-r--r-- | src/mbgl/geometry/anchor.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mbgl/geometry/anchor.hpp b/src/mbgl/geometry/anchor.hpp index 9bc979343e..3ed2b23e1b 100644 --- a/src/mbgl/geometry/anchor.hpp +++ b/src/mbgl/geometry/anchor.hpp @@ -6,17 +6,15 @@ namespace mbgl { -struct Anchor { +class Anchor { +public: Point<float> point; float angle = 0.0f; float scale = 0.0f; int segment = -1; - explicit Anchor(float x_, float y_, float angle_, float scale_) - : point(x_, y_), angle(angle_), scale(scale_) {} - explicit Anchor(float x_, float y_, float angle_, float scale_, int segment_) + Anchor(float x_, float y_, float angle_, float scale_, int segment_ = -1) : point(x_, y_), angle(angle_), scale(scale_), segment(segment_) {} - }; typedef std::vector<Anchor> Anchors; |