Revert "Change the get_text() method to return a const char*"
[SXSI/XMLTree.git] / xml-tree.cpp
index d6b54e8..b33383e 100644 (file)
@@ -399,9 +399,9 @@ int32_t xml_tree::text_id(xml_tree::node_t x) const
   return (int32_t) text_positions->rank1(x) - 1;
 }
 
-const char* xml_tree::get_text(int32_t id) const
+unsigned char* xml_tree::get_text(int32_t id) const
 {
-  const char * s = static_cast<const char*>(text_collection->GetText(id));
+  unsigned char * s = text_collection->GetText(id);
   return s + (s[0] == 1);
 }