explicit names

This commit is contained in:
Konstantin Käfer
2014-03-18 17:57:51 +01:00
parent 25ff0b253f
commit 98bb797a4a
3 changed files with 16 additions and 14 deletions

View File

@@ -12,9 +12,9 @@ struct Anchor {
float scale = 0.0f;
int segment = -1;
Anchor(float x, float y, float angle, float scale)
explicit Anchor(float x, float y, float angle, float scale)
: x(x), y(y), angle(angle), scale(scale) {}
Anchor(float x, float y, float angle, float scale, int segment)
explicit Anchor(float x, float y, float angle, float scale, int segment)
: x(x), y(y), angle(angle), scale(scale), segment(segment) {}
};