summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-09 12:33:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-09 12:33:23 +0000
commit1ccf4169918651522ee138c9747ac78ed6b01690 (patch)
treeb0735c56c0c307be2726cbea2614abdb12c8ba9c /hwpfilter
parent0572c27b0a43f39bfe3ab335eeeefbf672d1df96 (diff)
cppcheck: unit members
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/formula.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/hwpfilter/source/formula.h b/hwpfilter/source/formula.h
index d822edc95e3e..886eb2d8e394 100644
--- a/hwpfilter/source/formula.h
+++ b/hwpfilter/source/formula.h
@@ -46,15 +46,15 @@ using namespace ::com::sun::star::xml::sax;
class Formula{
public:
- Formula(char *_eq, int _ishwpeq = 1) {
- eq = _eq;
- isHwpEQ = _ishwpeq;
- trim();
- }
- virtual ~Formula(){ }
+ Formula(char *_eq, int _ishwpeq = 1)
+ : pList(NULL)
+ {
+ eq = _eq;
+ isHwpEQ = _ishwpeq;
+ trim();
+ }
+ virtual ~Formula(){ }
-// DVO: remove DEBUG dependency
-// #ifndef DEBUG
void setDocumentHandler(Reference < XDocumentHandler > xHandler ){
rDocumentHandler = xHandler;
}
@@ -62,8 +62,6 @@ public:
pList = p;
rList = (XAttributeList *) pList;
}
-// DVO: remove DEBUG dependency
-// #endif
int parse();
private:
void trim();
@@ -89,13 +87,9 @@ private:
void makeEnd(Node *res);
private:
-// DVO: remove DEBUG dependency
-// #ifndef DEBUG
Reference< XDocumentHandler > rDocumentHandler;
Reference< XAttributeList > rList;
AttributeListImpl *pList;
-// DVO: remove DEBUG dependency
-// #endif
char *eq;
int isHwpEQ;
};