From 06d90253c2890d437063aae263a1f9a5f9280ad8 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 20 Nov 2014 19:32:26 +0200 Subject: Use U_SUCCESS Change-Id: If16848fc47bfa28c30c9ce4b547aeb68cf166d90 --- sc/source/core/opencl/openclwrapper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx index 1e4bb7aee42b..66af89fa05e2 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(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; -- cgit