Don't create the text collection during parsing but afterwards.
[SXSI/XMLTree.git] / XMLTree.h
index d809bfc..351db20 100644 (file)
--- a/XMLTree.h
+++ b/XMLTree.h
@@ -32,6 +32,7 @@
 #undef Wminusone
 
 #include <bp/bp.h>
+#include <bp/bp-darray.h>
 #include <libcds/includes/basics.h>
 #include <libcds/includes/static_bitsequence.h>
 #include <libcds/includes/alphabet_mapper.h>
@@ -219,7 +220,7 @@ class XMLTree {
            std::vector<std::string> * const TN,
            TagIdMap * const tim, uint *empty_texts_bmp,
            TagType *tags,
-           TextCollection * const TC, bool dis_tc,
+           TextCollectionBuilder * const TCB, bool dis_tc,
            TextCollectionBuilder::index_type_t _index_type );
 
 public: