summaryrefslogtreecommitdiffstats
path: root/src/doxytag.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/doxytag.cpp
parent19119105076ca1b361b11b49df61050879c1e054 (diff)
downloadDoxygen-397fa609f53790f008f33d8ce4e6e26bce3c1279.zip
Doxygen-397fa609f53790f008f33d8ce4e6e26bce3c1279.tar.gz
Doxygen-397fa609f53790f008f33d8ce4e6e26bce3c1279.tar.bz2
Upgrade to 1.1.0
Diffstat (limited to 'src/doxytag.cpp')
-rw-r--r--src/doxytag.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/doxytag.cpp b/src/doxytag.cpp
index 0ed8ae7..e31593e 100644
--- a/src/doxytag.cpp
+++ b/src/doxytag.cpp
@@ -756,7 +756,7 @@ char *yytext;
*
* $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
@@ -895,9 +895,9 @@ static void addReference()
{
//printf("addReference() key: %s ref:%s\n",
// docRefName.data(),(docBaseLink+"#"+docAnchor).data());
- if (genIndex && docRefName.length()>0 && docBaseLink.length()>0)
+ if (genIndex && !docRefName.isEmpty() && !docBaseLink.isEmpty())
{
- if (docAnchor.length()==0)
+ if (!docAnchor.isEmpty())
searchIndex.addReference(docRefName,docBaseLink);
else
searchIndex.addReference(docRefName,docBaseLink+"#"+docAnchor);
@@ -1275,7 +1275,7 @@ YY_RULE_SETUP
//printf("tag: %s#%s ref: %s word: `%s'\n",
// docBaseLink.data(),docAnchor.data(),
// docRefName.data(),yytext);
- if (genIndex && docRefName.length()>0 && yyleng>2)
+ if (genIndex && !docRefName.isEmpty() && yyleng>2)
searchIndex.addWord(docRefName,
yytext,FALSE
);
@@ -1530,7 +1530,7 @@ YY_RULE_SETUP
#line 359 "doxytag.l"
{
//printf("SearchArg className=%s memberName=%s\n",className.data(),memberName.data());
- if (className.length()>0 && memberName.length()>0)
+ if (!className.isEmpty() && !memberName.isEmpty())
BEGIN( ReadArgs );
else
BEGIN( Start );
@@ -2599,7 +2599,7 @@ void parseFileOrDir(const char *fileName)
void usage(const char *name)
{
- fprintf(stderr,"Doxytag version %s\nCopyright Dimitri van Heesch 1997-1999\n\n",
+ fprintf(stderr,"Doxytag version %s\nCopyright Dimitri van Heesch 1997-2000\n\n",
versionString);
fprintf(stderr," Generates a tag file and/or a search index for a set of HTML files\n\n");
fprintf(stderr,"Usage: %s [-t tag_file] [-s index_file] [ html_file [html_file...] ]\n",name);
@@ -2656,8 +2656,8 @@ int main(int argc,char **argv)
optind++;
}
- genTag = tagName.length()>0;
- genIndex = indexName.length()>0;
+ genTag = !tagName.isEmpty();
+ genIndex = !indexName.isEmpty();
if (!genTag && !genIndex)
{