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

Tor Lillqvist tml at collabora.com
Thu Nov 20 09:33:29 PST 2014


 sc/source/core/opencl/openclwrapper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 06d90253c2890d437063aae263a1f9a5f9280ad8
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Nov 20 19:32:26 2014 +0200

    Use U_SUCCESS
    
    Change-Id: If16848fc47bfa28c30c9ce4b547aeb68cf166d90

diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index 1e4bb7a..66af89f 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -529,7 +529,7 @@ bool match(const OUString& rPattern, const OUString& rInput)
     icu::UnicodeString sIcuInput(reinterpret_cast<const UChar*>(rInput.getStr()), rInput.getLength());
     RegexMatcher aMatcher(sIcuPattern, sIcuInput, 0, nIcuError);
 
-    if (nIcuError == U_ZERO_ERROR && aMatcher.matches(nIcuError) && nIcuError == U_ZERO_ERROR)
+    if (U_SUCCESS(nIcuError) && aMatcher.matches(nIcuError) && U_SUCCESS(nIcuError))
         return true;
 
     return false;


More information about the Libreoffice-commits mailing list