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

New commits:
commit 06d90253c2890d437063aae263a1f9a5f9280ad8
Author: Tor Lillqvist <t...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to