summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-02-02 19:59:06 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-02-02 19:59:06 +0000
commit933c092395b6cee05e3e5bbf9fa67ff718ac6893 (patch)
treee73916ad3079e47f271ec3db9d8ac6e0b5a1a0a8 /src
parent9429411e9952b2ec641045827b31373aef951009 (diff)
XPath: xpath_ast_node ctors now initialize all members (code analysis warnings fix)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@242 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixpath.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index b7efa46..288f558 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -1910,25 +1910,27 @@ namespace pugi
}
public:
xpath_ast_node(ast_type_t type, const char* contents, xpath_allocator& a): m_type(type),
- m_rettype(xpath_type_none), m_left(0), m_right(0), m_third(0), m_next(0), m_contents(0)
+ m_rettype(xpath_type_none), m_left(0), m_right(0), m_third(0), m_next(0), m_contents(0),
+ m_axis(axis_self), m_test(nodetest_none)
{
set_contents(contents, a);
}
xpath_ast_node(ast_type_t type, xpath_ast_node* left, xpath_ast_node* right, axis_t axis): m_type(type),
m_rettype(xpath_type_none), m_left(left), m_right(right), m_third(0), m_next(0), m_contents(0),
- m_axis(axis)
+ m_axis(axis), m_test(nodetest_none)
{
}
xpath_ast_node(ast_type_t type, xpath_ast_node* left = 0, xpath_ast_node* right = 0, xpath_ast_node* third = 0): m_type(type),
- m_rettype(xpath_type_none), m_left(left), m_right(right), m_third(third), m_next(0), m_contents(0)
+ m_rettype(xpath_type_none), m_left(left), m_right(right), m_third(third), m_next(0), m_contents(0),
+ m_axis(axis_self), m_test(nodetest_none)
{
}
xpath_ast_node(ast_type_t type, xpath_ast_node* left, axis_t axis, nodetest_t test, const char* contents, xpath_allocator& a):
- m_type(type), m_rettype(xpath_type_none), m_left(left), m_right(0), m_third(0), m_next(0),
- m_contents(0), m_axis(axis), m_test(test)
+ m_type(type), m_rettype(xpath_type_none), m_left(left), m_right(0), m_third(0), m_next(0), m_contents(0),
+ m_axis(axis), m_test(test)
{
set_contents(contents, a);
}