projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further optimisations, changed the prototype of Tree.mli
[SXSI/xpathcomp.git]
/
SXSIStorageInterface.cpp
diff --git
a/SXSIStorageInterface.cpp
b/SXSIStorageInterface.cpp
index
0a1a715
..
43ea155
100644
(file)
--- a/
SXSIStorageInterface.cpp
+++ b/
SXSIStorageInterface.cpp
@@
-32,15
+32,9
@@
void SXSIStorageInterface::newChild(string name)
void SXSIStorageInterface::newText(string text)
{
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());
}
}