diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-11-21 19:07:07 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-11-21 19:07:07 -0600 |
commit | af36bdde9d2383550559c7cee7f7dea96db19866 (patch) | |
tree | a3e510c503ffd6daf7b844d57c97527033093732 | |
parent | f56ab3b477c5aee059f38655b6d47a24e2c01611 (diff) |
micro-optimization suggested by cppcheck
-rw-r--r-- | forms/source/xforms/xpathlib/xpathlib.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx index b22d7b186..b6c5bde18 100644 --- a/forms/source/xforms/xpathlib/xpathlib.cxx +++ b/forms/source/xforms/xpathlib/xpathlib.cxx @@ -211,7 +211,7 @@ void xforms_countNonEmptyFunction(xmlXPathParserContextPtr ctxt, int nargs) for (int i = 0; i < xmlXPathNodeSetGetLength(pNodeSet); i++) { aString = xmlXPathCastNodeToString(xmlXPathNodeSetItem(pNodeSet, i)); - if (strlen((char*)aString) > 0) nNotEmpty++; + if (*aString != 0) nNotEmpty++; } xmlXPathReturnNumber(ctxt, nNotEmpty); } |