summaryrefslogtreecommitdiff
path: root/src/AtomicFile.cpp
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-09-03 20:11:47 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-09-06 08:13:27 +0200
commit8cd04998f47ad21822bf024e2b38e104b12133eb (patch)
tree602c48d749cc6b440671f94c734c773dbfa157c9 /src/AtomicFile.cpp
parentd3934faf7c7b80f91ec17b5f61007e55400841d3 (diff)
downloadccache-8cd04998f47ad21822bf024e2b38e104b12133eb.tar.gz
refactor: Use more std::string_view
Diffstat (limited to 'src/AtomicFile.cpp')
-rw-r--r--src/AtomicFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AtomicFile.cpp b/src/AtomicFile.cpp
index f171dd2f..ec5fead6 100644
--- a/src/AtomicFile.cpp
+++ b/src/AtomicFile.cpp
@@ -42,7 +42,7 @@ AtomicFile::~AtomicFile()
}
void
-AtomicFile::write(const std::string& data)
+AtomicFile::write(std::string_view data)
{
if (fwrite(data.data(), data.size(), 1, m_stream) != 1) {
throw core::Error(