Module: wine Branch: master Commit: 760bcdcb4e5c271876baee6bc7207bba400b33a8 URL: https://gitlab.winehq.org/wine/wine/-/commit/760bcdcb4e5c271876baee6bc7207bb...
Author: David Kahurani k.kahurani@gmail.com Date: Sat Dec 23 12:26:49 2023 +0300
gdiplus: Avoid use of temporary variable.
A temporary variable is used here to assist with assignment but this does not conform to the coding style in the rest of gdiplus and introduces an unnecessary variable.
Signed-off-by: David Kahurani k.kahurani@gmail.com
---
dlls/gdiplus/graphicspath.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 24c2888cfe8..9e186aa43d1 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -117,10 +117,16 @@ struct flatten_bezier_job static BOOL flatten_bezier_add(struct list *jobs, path_list_node_t *start, REAL x2, REAL y2, REAL x3, REAL y3, path_list_node_t *end) { struct flatten_bezier_job *job = malloc(sizeof(struct flatten_bezier_job)); - struct flatten_bezier_job temp = { start, x2, y2, x3, y3, end }; if (!job) return FALSE; - *job = temp; + + job->start = start; + job->x2 = x2; + job->y2 = y2; + job->x3 = x3; + job->y3 = y3; + job->end = end; + list_add_after(jobs, &job->entry); return TRUE; }