[Libreoffice-commits] core.git: xmloff/source

Stephan Bergmann sbergman at redhat.com
Wed Mar 22 20:28:56 UTC 2017


 xmloff/source/meta/xmlmetai.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e6297cf05d943f8dee51dd995e9b8ff039cc9cd1
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 22 21:28:18 2017 +0100

    Use rtl::isAscii* instead of ctype.h is* with sal_Unicode arg
    
    Change-Id: Ieb4bda18ea6ee8d957bb9b9f584e12eb24091513

diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx
index 82e2d8e4c979..18b1560ead8c 100644
--- a/xmloff/source/meta/xmlmetai.cxx
+++ b/xmloff/source/meta/xmlmetai.cxx
@@ -24,6 +24,7 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/beans/XPropertySetInfo.hpp>
 #include <comphelper/processfactory.hxx>
+#include <rtl/character.hxx>
 #include <xmloff/xmlmetai.hxx>
 #include <xmloff/xmlimp.hxx>
 #include <xmloff/nmspmap.hxx>
@@ -274,7 +275,7 @@ void SvXMLMetaDocumentContext::setBuildId(OUString const& i_rBuildId, const uno:
         OUStringBuffer sNumber;
         for (sal_Int32 i = 0; i < rest.getLength(); ++i)
         {
-            if (isdigit(rest[i]))
+            if (rtl::isAsciiDigit(rest[i]))
             {
                 sNumber.append(rest[i]);
             }


More information about the Libreoffice-commits mailing list