mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
SVG content handler: Convert to using content_broadcast_errorcode().
This commit is contained in:
parent
9e64f37846
commit
e411c84e9b
@ -49,8 +49,6 @@ typedef struct svg_content {
|
||||
|
||||
static nserror svg_create_svg_data(svg_content *c)
|
||||
{
|
||||
union content_msg_data msg_data;
|
||||
|
||||
c->diagram = svgtiny_create();
|
||||
if (c->diagram == NULL)
|
||||
goto no_memory;
|
||||
@ -61,8 +59,7 @@ static nserror svg_create_svg_data(svg_content *c)
|
||||
return NSERROR_OK;
|
||||
|
||||
no_memory:
|
||||
msg_data.error = messages_get("NoMemory");
|
||||
content_broadcast(&c->base, CONTENT_MSG_ERROR, &msg_data);
|
||||
content_broadcast_errorcode(&c->base, NSERROR_NOMEM);
|
||||
return NSERROR_NOMEM;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user