summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hinfo.h
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-16 14:45:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-16 17:17:31 +0200
commit392c3b9093fdc8d64a2db2c98d070c2b0fd833aa (patch)
tree6a27c6ae2a75cd877b902a3faf17483f3d917099 /hwpfilter/source/hinfo.h
parentbf1ffc64128f5b96d7c2fcc7adc81cbc25e232fd (diff)
zero init the TabSet too
and move the ColumnDef init into its ctor Change-Id: I16e5252c53037663caf9f51b55adfbb7d29da549 Reviewed-on: https://gerrit.libreoffice.org/40008 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter/source/hinfo.h')
-rw-r--r--hwpfilter/source/hinfo.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/hwpfilter/source/hinfo.h b/hwpfilter/source/hinfo.h
index 864e2ac031ec..61ff7b9d442f 100644
--- a/hwpfilter/source/hinfo.h
+++ b/hwpfilter/source/hinfo.h
@@ -242,23 +242,37 @@ struct CharShape
/**
* @short Tab properties
*/
-typedef struct
+struct TabSet
{
unsigned char type;
unsigned char dot_continue;
hunit position;
-} TabSet;
+ TabSet()
+ : type(0)
+ , dot_continue(0)
+ , position(0)
+ {
+ }
+};
/**
* @short Column properties
*/
-typedef struct
+struct ColumnDef
{
unsigned char ncols;
unsigned char separator;
hunit spacing;
hunit columnlen, columnlen0;
-} ColumnDef;
+ ColumnDef()
+ : ncols(0)
+ , separator(0)
+ , spacing(0)
+ , columnlen(0)
+ , columnlen0(0)
+ {
+ }
+};
/**
* @short Style of paragraph