diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-22 13:44:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-22 13:44:38 +0200 |
commit | 92f10ad9bcc9b24401a730175ae5a5252b803b06 (patch) | |
tree | 49e23b68a28c999421d7c4c7b140632a679e024f /opencl/inc | |
parent | 334e2dc9c3da4519e31e0452a40d3a958c401876 (diff) |
Various loplugin warnings in opencl/
Change-Id: Ia6254777bc7972e2272dba542e315a8d3bd0fdf0
Diffstat (limited to 'opencl/inc')
-rw-r--r-- | opencl/inc/opencl_device.hxx | 2 | ||||
-rw-r--r-- | opencl/inc/opencl_device_selection.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/opencl/inc/opencl_device.hxx b/opencl/inc/opencl_device.hxx index 7b5b79aec3dc..0963304e8f99 100644 --- a/opencl/inc/opencl_device.hxx +++ b/opencl/inc/opencl_device.hxx @@ -14,7 +14,7 @@ namespace opencl { -ds_device getDeviceSelection(OUString pFileName, bool bForceSelection = false); +ds_device getDeviceSelection(OUString const & pFileName, bool bForceSelection = false); } diff --git a/opencl/inc/opencl_device_selection.h b/opencl/inc/opencl_device_selection.h index cf57b3183f8a..6ec506dd0314 100644 --- a/opencl/inc/opencl_device_selection.h +++ b/opencl/inc/opencl_device_selection.h @@ -402,7 +402,7 @@ inline ds_status writeProfile(const OUString& rStreamName, std::unique_ptr<ds_pr XmlWriter aXmlWriter(pStream.get()); - if (aXmlWriter.startDocument() == false) + if (!aXmlWriter.startDocument()) return DS_FILE_ERROR; aXmlWriter.startElement("profile"); @@ -440,7 +440,7 @@ inline ds_status writeProfile(const OUString& rStreamName, std::unique_ptr<ds_pr } aXmlWriter.startElement("time"); - if (rDevice.fTime == DBL_MAX) + if (rtl::math::approxEqual(rDevice.fTime, DBL_MAX)) aXmlWriter.content("max"); else aXmlWriter.content(OString::number(rDevice.fTime)); |