summaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-02-22 19:57:25 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-02-22 19:57:25 (GMT)
commit5edb3c85109d09e5fa43529bf8b584382f7501a5 (patch)
treebb6a2ec7453702ed2fe2348793b0bddf5d80042a /addon
parenta9b8e48237d4094095b91031ac7c9fb0f4cc028e (diff)
downloadDoxygen-5edb3c85109d09e5fa43529bf8b584382f7501a5.zip
Doxygen-5edb3c85109d09e5fa43529bf8b584382f7501a5.tar.gz
Doxygen-5edb3c85109d09e5fa43529bf8b584382f7501a5.tar.bz2
Release-1.3.6-20040222
Diffstat (limited to 'addon')
-rw-r--r--addon/doxmlparser/examples/metrics/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/addon/doxmlparser/examples/metrics/main.cpp b/addon/doxmlparser/examples/metrics/main.cpp
index 2129988..2c4bee3 100644
--- a/addon/doxmlparser/examples/metrics/main.cpp
+++ b/addon/doxmlparser/examples/metrics/main.cpp
@@ -204,7 +204,8 @@ int main(int argc,char **argv)
{
numParams++;
}
- if (strcmp(mem->typeString()->latin1(),"void")!=0)
+ const char *type = mem->typeString()->latin1();
+ if (type && strcmp(type, "void"))
{
numParams++; // count non-void return types as well
}