projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix handling of subtree_elements. Make the function constant time
[SXSI/XMLTree.git]
/
xml-tree.cpp
diff --git
a/xml-tree.cpp
b/xml-tree.cpp
index
d6b54e8
..
21c77c4
100644
(file)
--- a/
xml-tree.cpp
+++ b/
xml-tree.cpp
@@
-401,7
+401,7
@@
int32_t xml_tree::text_id(xml_tree::node_t x) const
const char* xml_tree::get_text(int32_t id) const
{
- const char * s =
static
_cast<const char*>(text_collection->GetText(id));
+ const char * s =
reinterpret
_cast<const char*>(text_collection->GetText(id));
return s + (s[0] == 1);
}