From: Joel Rosdahl Date: Mon, 10 Feb 2020 20:25:38 +0000 (+0100) Subject: Simplify code X-Git-Tag: v4.0~631 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba2b433b748aeda084251ade6f0539d2abac4cb7;p=thirdparty%2Fccache.git Simplify code --- diff --git a/src/ccache.cpp b/src/ccache.cpp index 86ba07a2e..5130ca18e 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -372,8 +372,7 @@ dump_debug_log_buffer_exitfn(void* context) return; } - std::string path = - fmt::format("{}.ccache-log", ctx.args_info.output_obj.c_str()); + std::string path = fmt::format("{}.ccache-log", ctx.args_info.output_obj); cc_dump_debug_log_buffer(path.c_str()); } @@ -3771,7 +3770,7 @@ do_cache_compilation(Context& ctx, char* argv[]) FILE* debug_text_file = NULL; if (g_config.debug()) { std::string path = - fmt::format("{}.ccache-input-text", ctx.args_info.output_obj.c_str()); + fmt::format("{}.ccache-input-text", ctx.args_info.output_obj); debug_text_file = fopen(path.c_str(), "w"); if (debug_text_file) { exitfn_add(fclose_exitfn, debug_text_file);