diff options
Diffstat (limited to 'addon/doxmlparser')
-rw-r--r-- | addon/doxmlparser/examples/metrics/main.cpp | 3 |
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 } |