diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2022-09-03 20:11:47 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2022-09-06 08:13:27 +0200 |
commit | 8cd04998f47ad21822bf024e2b38e104b12133eb (patch) | |
tree | 602c48d749cc6b440671f94c734c773dbfa157c9 /src/AtomicFile.cpp | |
parent | d3934faf7c7b80f91ec17b5f61007e55400841d3 (diff) | |
download | ccache-8cd04998f47ad21822bf024e2b38e104b12133eb.tar.gz |
refactor: Use more std::string_view
Diffstat (limited to 'src/AtomicFile.cpp')
-rw-r--r-- | src/AtomicFile.cpp | 2 |
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( |