diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 13:27:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 14:12:29 +0100 |
commit | ebf88643f3b749d1789183d8c441e5013c71a3f3 (patch) | |
tree | 428cba3dff07bf552d750d17d48607bc5ddcb878 /opencl/source | |
parent | oox: Use appropriate OUString functions on string constants (diff) | |
download | core-ebf88643f3b749d1789183d8c441e5013c71a3f3.tar.gz core-ebf88643f3b749d1789183d8c441e5013c71a3f3.zip |
opencl: Use appropriate OUString functions on string constants
Change-Id: I0c461fa2c2ac62f9dd63e793f8cbc0c68c510082
Diffstat (limited to 'opencl/source')
-rw-r--r-- | opencl/source/openclconfig.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opencl/source/openclconfig.cxx b/opencl/source/openclconfig.cxx index dd50649e5a41..2562b0db5e09 100644 --- a/opencl/source/openclconfig.cxx +++ b/opencl/source/openclconfig.cxx @@ -114,7 +114,7 @@ OpenCLConfig::ImplMatcherSet StringSequenceToSetOfImplMatcher(const css::uno::Se bool match(const OUString& rPattern, const OUString& rInput) { - if (rPattern == "") + if (rPattern.isEmpty()) return true; UErrorCode nIcuError(U_ZERO_ERROR); @@ -131,13 +131,13 @@ bool match(const OUString& rPattern, const OUString& rInput) bool match(const OpenCLConfig::ImplMatcher& rListEntry, const OpenCLPlatformInfo& rPlatform, const OpenCLDeviceInfo& rDevice) { #if defined WNT - if (rListEntry.maOS != "" && rListEntry.maOS != "Windows") + if (!rListEntry.maOS.isEmpty() && rListEntry.maOS != "Windows") return false; #elif defined LINUX - if (rListEntry.maOS != "" && rListEntry.maOS != "Linux") + if (!rListEntry.maOS.isEmpty() && rListEntry.maOS != "Linux") return false; #elif defined MACOSX - if (rListEntry.maOS != "" && rListEntry.maOS != "OS X") + if (!rListEntry.maOS.isEmpty() && rListEntry.maOS != "OS X") return false; #endif |