summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-26 12:06:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-27 09:27:44 +0200
commit62f6d6ee8bca918e17ae167582095f4302203bed (patch)
tree976279a87d1aca3b24cb37dcf6c4b6378f6d6fdd /opencl
parentbde131ad18620dea03531c59893c99be09e3ce4e (diff)
use more string_view in tools/stream
Change-Id: I2a957cd72d71fea717734488cdb3670e0bcdd6f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114657 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'opencl')
-rw-r--r--opencl/source/opencl_device.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx
index a5b249182a3d..69ba12cbf21a 100644
--- a/opencl/source/opencl_device.cxx
+++ b/opencl/source/opencl_device.cxx
@@ -429,13 +429,13 @@ public:
: maStream(aFileName, StreamMode::WRITE)
{}
- void text(const OString& rText)
+ void text(std::string_view rText)
{
maStream.WriteOString(rText);
maStream.WriteChar('\n');
}
- void log(const OString& rKey, const OString& rValue)
+ void log(std::string_view rKey, std::string_view rValue)
{
maStream.WriteOString(rKey);
maStream.WriteCharPtr(": ");
@@ -443,12 +443,12 @@ public:
maStream.WriteChar('\n');
}
- void log(const OString& rKey, int rValue)
+ void log(std::string_view rKey, int rValue)
{
log(rKey, OString::number(rValue));
}
- void log(const OString& rKey, bool rValue)
+ void log(std::string_view rKey, bool rValue)
{
log(rKey, OString::boolean(rValue));
}