diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 21:26:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 21:26:18 +0100 |
commit | 20a1afe407e4b592c787965b85ecfa8ddfd333de (patch) | |
tree | 56a5b0ab25c98fd9552913a24aac4808d8682ee4 /hwpfilter | |
parent | it's c++ not c (diff) | |
download | core-20a1afe407e4b592c787965b85ecfa8ddfd333de.tar.gz core-20a1afe407e4b592c787965b85ecfa8ddfd333de.zip |
valgrind: linenumber uninited
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpfile.cpp | 36 | ||||
-rw-r--r-- | hwpfilter/source/hwpfile.h | 9 |
2 files changed, 16 insertions, 29 deletions
diff --git a/hwpfilter/source/hwpfile.cpp b/hwpfilter/source/hwpfile.cpp index 2b1bde79f7d1..b77cc1dad25f 100644 --- a/hwpfilter/source/hwpfile.cpp +++ b/hwpfilter/source/hwpfile.cpp @@ -54,16 +54,26 @@ static int ccount = 0; static int pcount = 0; static int datecodecount = 0; -HWPFile::HWPFile(void) +HWPFile::HWPFile() + : version(HWP_V30) + , compressed(false) + , encrypted(false) + , linenumber(0) + , info_block_len(0) + , error_code(HWP_NoError) + , oledata(0) + , m_nCurrentPage(1) + , m_nMaxSettedPage(0) + , hiodev(0) + , currenthyper(0) { - Init(); + SetCurrentDoc(this); } - /** * TODO : Ãß°¡µÈ ½ºÅ¸Àϸ®½ºÆ®¿¡ ´ëÇÑ ¸Þ¸ð¸® ÇØÁ¦ */ -HWPFile::~HWPFile(void) +HWPFile::~HWPFile() { if (oledata) delete oledata; @@ -90,24 +100,6 @@ HWPFile::~HWPFile(void) } } - -void HWPFile::Init(void) -{ - version = HWP_V30; - info_block_len = 0; - compressed = false; - encrypted = false; - - error_code = HWP_NoError; - hiodev = 0; - oledata = 0; - SetCurrentDoc(this); - currenthyper = 0; - m_nCurrentPage = 1; - m_nMaxSettedPage = 0; -} - - int HWPFile::ReadHwpFile(HStream & stream) { if (Open(stream) != HWP_NoError) diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h index 78cdbab0b99f..8f71c4aa0d08 100644 --- a/hwpfilter/source/hwpfile.h +++ b/hwpfilter/source/hwpfile.h @@ -109,15 +109,10 @@ class DLLEXPORT HWPFile /** * Default constructor */ - HWPFile( void ); - - ~HWPFile( void ); + HWPFile(); + ~HWPFile(); public: -/** - * Initialize this object - */ - void Init(); /** * Opens HStream to use it. |