diff options
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hbox.cxx | 32 | ||||
-rw-r--r-- | hwpfilter/source/hbox.h | 12 |
2 files changed, 37 insertions, 7 deletions
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx index ef8a8d46fbb5..c3c7eca4f881 100644 --- a/hwpfilter/source/hbox.cxx +++ b/hwpfilter/source/hbox.cxx @@ -289,9 +289,7 @@ hchar_string DateCode::GetString() return ret; } - // tab(9) - Tab::Tab() : HBox(CH_TAB) , width(0) @@ -300,15 +298,35 @@ Tab::Tab() { } - // floating box -FBox::FBox(hchar hch):HBox(hch) +FBox::FBox(hchar hch) + : HBox(hch) + , zorder(0) + , option(0) + , ctrl_ch(0) + , box_xs(0) + , box_ys(0) + , cap_xs(0) + , cap_ys(0) + , xs(0) + , ys(0) + , cap_margin(0) + , xpos_type(0) + , ypos_type(0) + , smart_linesp(0) + , boundsy(0) + , boundey(0) + , boundx(0) + , draw(0) + , pgx(0) + , pgy(0) + , pgno(0) + , showpg(0) + , prev(NULL) + , next(NULL) { - prev = next = 0; - zorder = 0; } - FBox::~FBox() { } diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h index 32ffa58e2651..c18be55ff994 100644 --- a/hwpfilter/source/hbox.h +++ b/hwpfilter/source/hbox.h @@ -288,6 +288,18 @@ struct FBoxStyle void *cell; + FBoxStyle() + : anchor_type(0) + , txtflow(0) + , xpos(0) + , ypos(0) + , boxnum(0) + , boxtype(0) + , cap_len(0) + , cell(NULL) + { + memset(margin, 0, sizeof(margin)); + } }; /** |