mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
[path-builder] Micro-optimize
No need to initialize these when has_data=false.
This commit is contained in:
1 parent
5703c1c4ea
commit
6abca413ae
1 file changed
+2
-2
@@ -21,8 +21,8 @@ struct path_builder_t
|
||||
operator bool () const { return has_data; }
|
||||
|
||||
bool has_data = false;
|
||||
float x = 0.;
|
||||
float y = 0.;
|
||||
float x;
|
||||
float y;
|
||||
|
||||
optional_point_t lerp (optional_point_t p, float t)
|
||||
{ return optional_point_t (x + t * (p.x - x), y + t * (p.y - y)); }
|
||||
|
||||
Reference in new issue
Block a user