[Libreoffice-commits] .: 2 commits - forms/source .gitignore

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sun Nov 21 17:07:30 PST 2010


 .gitignore                                |    2 ++
 forms/source/xforms/xpathlib/xpathlib.cxx |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit af36bdde9d2383550559c7cee7f7dea96db19866
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sun Nov 21 19:07:07 2010 -0600

    micro-optimization suggested by cppcheck

diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index b22d7b1..b6c5bde 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);
 }
commit f56ab3b477c5aee059f38655b6d47a24e2c01611
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sun Nov 21 19:06:15 2010 -0600

    adjust .gitignore for MacOS

diff --git a/.gitignore b/.gitignore
index 50784a4..2fc1892 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@
 /*/unxlng??.pro
 /*/wntmsci??
 /*/wntmsci??.pro
+/*/unxmac??
+/*/unxmac??.pro


More information about the Libreoffice-commits mailing list