From 312238f2b1414c98ed7d7d51dc4e18278edb2540 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Mon, 28 Nov 2022 08:21:22 -0800 Subject: [PATCH] Make C++ runfiles library build with `-Werror=shadow` Fixes #16796 Closes #16801. PiperOrigin-RevId: 491349584 Change-Id: I7498d9343a5d7849e2d726fbc1e5447178c39d79 --- tools/cpp/runfiles/runfiles_src.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cpp/runfiles/runfiles_src.h b/tools/cpp/runfiles/runfiles_src.h index 75103e230bf8ce..242b834856553f 100644 --- a/tools/cpp/runfiles/runfiles_src.h +++ b/tools/cpp/runfiles/runfiles_src.h @@ -195,12 +195,12 @@ class Runfiles { std::map runfiles_map, std::string directory, std::map, std::string> repo_mapping, std::vector > envvars, - std::string source_repository_) + std::string source_repository) : runfiles_map_(std::move(runfiles_map)), directory_(std::move(directory)), repo_mapping_(std::move(repo_mapping)), envvars_(std::move(envvars)), - source_repository_(std::move(source_repository_)) {} + source_repository_(std::move(source_repository)) {} Runfiles(const Runfiles&) = delete; Runfiles(Runfiles&&) = delete; Runfiles& operator=(const Runfiles&) = delete;