aboutsummaryrefslogtreecommitdiff
path: root/src/table.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-06-21 21:06:38 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-06-21 21:06:38 -0400
commit86ad9513a8d090501dd602b00b70fecc31eeaaa4 (patch)
tree5b3d54986b78148658ca43015a579226e278d07c /src/table.cc
parentc1a46d534c0d4b67f71c6e4a378de94ba4c6aaa4 (diff)
Eliminated a pack of 22 compiler warnings (gcc-4.6.1 amd64)
Diffstat (limited to 'src/table.cc')
-rw-r--r--src/table.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/table.cc b/src/table.cc
index 58cdf22e..d48a0c45 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -151,7 +151,6 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize)
{
const char *attrbuf;
int32_t bgcolor = -1;
- bool new_style = false;
html->styleEngine->inheritNonCssHints ();
@@ -183,10 +182,8 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize)
if (bgcolor != -1) {
html->styleEngine->setNonCssHint(CSS_PROPERTY_BACKGROUND_COLOR,
CSS_TYPE_COLOR, bgcolor);
- new_style = true;
}
- if (a_Html_tag_set_valign_attr (html, tag, tagsize))
- new_style = true;
+ a_Html_tag_set_valign_attr (html, tag, tagsize);
break;
default:
break;
@@ -318,7 +315,6 @@ static void Html_tag_open_table_cell(DilloHtml *html,
int colspan = 1, rowspan = 1;
const char *attrbuf;
int32_t bgcolor;
- bool_t new_style;
html->styleEngine->inheritNonCssHints ();
@@ -363,8 +359,7 @@ static void Html_tag_open_table_cell(DilloHtml *html,
a_Html_parse_length (html, attrbuf));
}
- if (a_Html_tag_set_valign_attr (html, tag, tagsize))
- new_style = TRUE;
+ a_Html_tag_set_valign_attr (html, tag, tagsize);
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "bgcolor"))) {
bgcolor = a_Html_color_parse(html, attrbuf, -1);