diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-02-01 13:59:42 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-02-01 13:59:42 (GMT) |
commit | 8fda55cdfe71d9e23407169499e918478161328d (patch) | |
tree | 95791f3a49cf176781e5089ddcf643f2aa8e93a1 /addon/doxmlparser | |
parent | daa0336ab06f76a07f59499cbc47fd919073749d (diff) | |
download | Doxygen-8fda55cdfe71d9e23407169499e918478161328d.zip Doxygen-8fda55cdfe71d9e23407169499e918478161328d.tar.gz Doxygen-8fda55cdfe71d9e23407169499e918478161328d.tar.bz2 |
Release-1.3-rc3
Diffstat (limited to 'addon/doxmlparser')
-rw-r--r-- | addon/doxmlparser/examples/metrics/main.cpp | 12 |
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 } |