aboutsummaryrefslogtreecommitdiffstats
path: root/src/compress.cpp
diff options
context:
space:
mode:
authorErik Johansson <erik@ejohansson.se>2020-02-23 21:54:42 +0100
committerErik Johansson <erik@ejohansson.se>2020-02-23 22:07:08 +0100
commitb2b3af005e95fffdb04ce2cb98ec24feefa192ce (patch)
treee0087e18f7ce7f62f736a126c4197a8390803d98 /src/compress.cpp
parentac61a000e2bac51b21093e3c19136aa08a438292 (diff)
downloadccache-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.cpp2
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());
}