Commit 760bcdcb authored by David Kahurani's avatar David Kahurani Committed by Alexandre Julliard

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: 's avatarDavid Kahurani <k.kahurani@gmail.com>
parent d91eab24
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment