From: Joel Rosdahl Date: Mon, 10 Jan 2022 21:22:08 +0000 (+0100) Subject: fix: Unconstify variable to allow automatic move X-Git-Tag: v4.6~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e90bb15f340b2c1ad0d5425c14fbf0f1cf590ffe;p=thirdparty%2Fccache.git fix: Unconstify variable to allow automatic move As suggested by Clang-Tidy. --- diff --git a/src/Config.cpp b/src/Config.cpp index 0a3ccca4a..14c21a09d 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -1027,7 +1027,7 @@ Config::default_temporary_dir(const std::string& cache_dir) { static const std::string run_user_tmp_dir = [] { #ifdef HAVE_GETEUID - const auto dir = FMT("/run/user/{}/ccache-tmp", geteuid()); + auto dir = FMT("/run/user/{}/ccache-tmp", geteuid()); if (Util::create_dir(dir)) { return dir; }