summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-11-21 19:07:07 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-11-21 19:07:07 -0600
commit9140ff3adcb0d34bdaef8fb8b73c96947c592ec0 (patch)
treea476a16e4b6dcffc8cc1b312125afdf11e8d7503 /forms
parent125f62ce4860a075a14f48465869c9f36ee9a266 (diff)
micro-optimization suggested by cppcheck
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/xpathlib/xpathlib.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index e91fa1a043f8..9a6f59a1592f 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);
}