summaryrefslogtreecommitdiffstats
path: root/src/suffixtree.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-02-15 20:03:34 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-02-15 20:03:34 (GMT)
commit397fa609f53790f008f33d8ce4e6e26bce3c1279 (patch)
tree50b1099761af52d0ca94caec83c8ff3a08efb753 /src/suffixtree.cpp
parent19119105076ca1b361b11b49df61050879c1e054 (diff)
downloadDoxygen-397fa609f53790f008f33d8ce4e6e26bce3c1279.zip
Doxygen-397fa609f53790f008f33d8ce4e6e26bce3c1279.tar.gz
Doxygen-397fa609f53790f008f33d8ce4e6e26bce3c1279.tar.bz2
Upgrade to 1.1.0
Diffstat (limited to 'src/suffixtree.cpp')
-rw-r--r--src/suffixtree.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/suffixtree.cpp b/src/suffixtree.cpp
index 8b8ce88..9bb6be5 100644
--- a/src/suffixtree.cpp
+++ b/src/suffixtree.cpp
@@ -2,7 +2,7 @@
*
* $Id$
*
- * Copyright (C) 1997-1999 by Dimitri van Heesch.
+ * Copyright (C) 1997-2000 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -201,7 +201,7 @@ void SuffixNode::resolveForwardReferences(int &offset)
{
if (children->count()>0)
{
- if (label.length()>0) offset++; // terminator for the previous level
+ if (!label.isEmpty()) offset++; // terminator for the previous level
branchOffset=offset;
}
else
@@ -241,7 +241,7 @@ void SuffixNode::resolveForwardReferences(int &offset)
int SuffixNode::size()
{
int s=0;
- if (label.length()>0 && children->count()>0) s++; // for the terminator
+ if (!label.isEmpty() && children->count()>0) s++; // for the terminator
SuffixNode *sn=children->first();
while (sn)
{
@@ -271,7 +271,7 @@ int SuffixNode::size()
bool SuffixNode::write(QFile &f)
{
bool error=FALSE;
- if (children->count()>0 && label.length()>0) error=error || (f.putch(0)==-1);
+ if (children->count()>0 && !label.isEmpty()) error=error || (f.putch(0)==-1);
SuffixNode *sn=children->first();
while (sn)
{