diff options
author | Erik Johansson <erik@ejohansson.se> | 2020-02-23 21:54:42 +0100 |
---|---|---|
committer | Erik Johansson <erik@ejohansson.se> | 2020-02-23 22:07:08 +0100 |
commit | b2b3af005e95fffdb04ce2cb98ec24feefa192ce (patch) | |
tree | e0087e18f7ce7f62f736a126c4197a8390803d98 /src/compress.cpp | |
parent | ac61a000e2bac51b21093e3c19136aa08a438292 (diff) | |
download | ccache-b2b3af005e95fffdb04ce2cb98ec24feefa192ce.tar.gz ccache-b2b3af005e95fffdb04ce2cb98ec24feefa192ce.tar.bz2 ccache-b2b3af005e95fffdb04ce2cb98ec24feefa192ce.zip |
Pass std::string instead of .c_str()
to function taking std::string.
Diffstat (limited to 'src/compress.cpp')
-rw-r--r-- | src/compress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compress.cpp b/src/compress.cpp index d127e861..055aaa73 100644 --- a/src/compress.cpp +++ b/src/compress.cpp @@ -127,7 +127,7 @@ recompress_file(Context& ctx, uint64_t new_size = Stat::stat(cache_file.path(), Stat::OnError::log).size_on_disk(); - stats_update_size(ctx, stats_file.c_str(), new_size - old_size, 0); + stats_update_size(ctx, stats_file, new_size - old_size, 0); cc_log("Recompression of %s done", cache_file.path().c_str()); } |