]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Unconstify variable to allow automatic move
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 10 Jan 2022 21:22:08 +0000 (22:22 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 10 Jan 2022 21:22:08 +0000 (22:22 +0100)
As suggested by Clang-Tidy.

src/Config.cpp

index 0a3ccca4a819687f6bd0c85742145e034e39e4b4..14c21a09d3bb6c9a362d5591026db76f810394a9 100644 (file)
@@ -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;
     }