Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-23 14:14:47 +02:00
parent cd21e6665b
commit 446df09acc
3 changed files with 3 additions and 5 deletions

View File

@ -769,7 +769,7 @@ static void
client_markup_on_elem(markup_parser_data_t *p, const char *elem, client_markup_on_elem(markup_parser_data_t *p, const char *elem,
const char **names, const char **values) const char **names, const char **values)
{ {
assert (!strcmp(elem, "title")); assert(!a_strcmp(elem, "title"));
buffer_add_xmlescaped(&p->text, p->priv); buffer_add_xmlescaped(&p->text, p->priv);
} }

View File

@ -59,7 +59,7 @@ static void
tag_markup_on_elem(markup_parser_data_t *p, const char *elem, tag_markup_on_elem(markup_parser_data_t *p, const char *elem,
const char **names, const char **values) const char **names, const char **values)
{ {
assert (!strcmp(elem, "title")); assert(!a_strcmp(elem, "title"));
buffer_add_xmlescaped(&p->text, p->priv); buffer_add_xmlescaped(&p->text, p->priv);
} }

View File

@ -77,9 +77,8 @@ tasklist_markup_on_elem(markup_parser_data_t *p, const char *elem,
struct tasklist_hook_data *data = p->priv; struct tasklist_hook_data *data = p->priv;
draw_context_t *ctx = data->ctx; draw_context_t *ctx = data->ctx;
assert(!strcmp(elem, "bg")); assert(!a_strcmp(elem, "bg"));
for(; *names; names++, values++) for(; *names; names++, values++)
{
if(!a_strcmp(*names, "color")) if(!a_strcmp(*names, "color"))
{ {
xcolor_t bg_color; xcolor_t bg_color;
@ -87,7 +86,6 @@ tasklist_markup_on_elem(markup_parser_data_t *p, const char *elem,
draw_rectangle(ctx, *data->area, 1.0, true, bg_color); draw_rectangle(ctx, *data->area, 1.0, true, bg_color);
break; break;
} }
}
} }