summaryrefslogtreecommitdiffstats
path: root/addon/doxmlparser
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-02-01 13:59:42 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-02-01 13:59:42 (GMT)
commite0e5c8556b4713e7dad60537658cd411f8dfd858 (patch)
tree95791f3a49cf176781e5089ddcf643f2aa8e93a1 /addon/doxmlparser
parent5d7d90c39506fb7a19514dc4abd540018deeaaf6 (diff)
downloadDoxygen-e0e5c8556b4713e7dad60537658cd411f8dfd858.zip
Doxygen-e0e5c8556b4713e7dad60537658cd411f8dfd858.tar.gz
Doxygen-e0e5c8556b4713e7dad60537658cd411f8dfd858.tar.bz2
Release-1.3-rc3
Diffstat (limited to 'addon/doxmlparser')
-rw-r--r--addon/doxmlparser/examples/metrics/main.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/addon/doxmlparser/examples/metrics/main.cpp b/addon/doxmlparser/examples/metrics/main.cpp
index 9553172..2129988 100644
--- a/addon/doxmlparser/examples/metrics/main.cpp
+++ b/addon/doxmlparser/examples/metrics/main.cpp
@@ -3,7 +3,7 @@
* $Id$
*
*
- * Copyright (C) 1997-2002 by Dimitri van Heesch.
+ * Copyright (C) 1997-2003 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
@@ -19,17 +19,19 @@
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <doxmlintf.h>
bool isDocumented(IDocRoot *brief,IDocRoot *detailed)
{
- bool found=FALSE;
+ bool found=false;
if (brief)
{
IDocIterator *docIt = brief->contents();
if (docIt->current()) // method has brief description
{
- found=TRUE;
+ found=true;
}
docIt->release();
}
@@ -38,7 +40,7 @@ bool isDocumented(IDocRoot *brief,IDocRoot *detailed)
IDocIterator *docIt = detailed->contents();
if (docIt->current())
{
- found=TRUE;
+ found=true;
}
docIt->release();
}
@@ -202,7 +204,7 @@ int main(int argc,char **argv)
{
numParams++;
}
- if (QString(mem->typeString()->latin1())!="void")
+ if (strcmp(mem->typeString()->latin1(),"void")!=0)
{
numParams++; // count non-void return types as well
}