1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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>
This commit is contained in:
David Kahurani 2023-12-23 12:26:49 +03:00 committed by Alexandre Julliard
parent d91eab24d2
commit 760bcdcb4e

View file

@ -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;
}