summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-20 19:06:45 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-20 19:06:45 +0000
commit612fa49d1d01c83e90f0b933c1b7aeee79161b68 (patch)
treede3d7240e426ec997cc716ba3fd47750a9bf5a23 /src/pugixml.hpp
parentd35f6751cf5165911b88a6f889262681506ad709 (diff)
XPath: xpath_parse_result is now default-initialized to object with failed status
git-svn-id: http://pugixml.googlecode.com/svn/trunk@738 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 89494bf..b6f1710 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1775,6 +1775,10 @@ namespace pugi
/// Last parsed offset (in characters from string start)
ptrdiff_t offset;
+ xpath_parse_result(): error("Internal error"), offset(0)
+ {
+ }
+
/// Cast to bool operator
operator bool() const
{