summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-20 15:25:12 +0200
committerNoel Grandin <noel@peralex.com>2014-02-21 11:59:09 +0200
commit2cd2130d67035d2bbfb5ebca6a82d0a53f89e298 (patch)
treeec9d8a7c2cd6475cb6f6c36c9c6edf5ecf83b550 /hwpfilter
parent2b9fe0c75ee93aa52f58dcee10c692a672b0cff7 (diff)
cid#707898 Uninitialized pointer field
Change-Id: I9e972da45b10d6c88ade34fb69cb49affd2063fb
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hbox.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h
index 8be92f73023d..0dc7076a6b59 100644
--- a/hwpfilter/source/hbox.h
+++ b/hwpfilter/source/hbox.h
@@ -527,15 +527,16 @@ struct TCell
struct Table
{
- Table(){};
- ~Table(){
+ Table() : box(NULL) {};
+ ~Table() {
std::list<TCell*>::iterator it = cells.begin();
for( ; it != cells.end(); ++it)
delete *it;
};
+
Columns columns;
- Rows rows;
- std::list<TCell*> cells;
+ Rows rows;
+ std::list<TCell*> cells;
TxtBox *box;
};