X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=SXSIStorageInterface.cpp;fp=SXSIStorageInterface.cpp;h=43ea1551518b05009d74a5ac8c7f74b6a6c2be58;hb=70ff0bfc463882ecf233f1b1a7ac4a8007fa4cc2;hp=0a1a715eb0f4d736a03537e3c2cee44b31c6f19e;hpb=451e60ad59e35344dff62da5ca27fcd5eec1bff9;p=SXSI%2Fxpathcomp.git diff --git a/SXSIStorageInterface.cpp b/SXSIStorageInterface.cpp index 0a1a715..43ea155 100644 --- a/SXSIStorageInterface.cpp +++ b/SXSIStorageInterface.cpp @@ -32,15 +32,9 @@ void SXSIStorageInterface::newChild(string name) void SXSIStorageInterface::newText(string text) { - if (text.empty()) { - _new_empty_text++; - tb->NewEmptyText(); - } - else { - _new_text++; - _length_text += text.size(); - tb->NewText((unsigned char*) text.c_str()); - } + _new_text++; + _length_text += text.size(); + tb->NewText((unsigned char*) text.c_str()); }