From 27b3955e546d8a8696bb84b99751fb90e105fc3a Mon Sep 17 00:00:00 2001 From: Olga Kiseleva Date: Fri, 10 Jan 2025 20:21:01 +0100 Subject: [PATCH] [clang-tidy, tools] Pass by reference instead of value (#1129) --- tools/utils/generators/configurators/config_container.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/utils/generators/configurators/config_container.hpp b/tools/utils/generators/configurators/config_container.hpp index c413ad26..02dec133 100644 --- a/tools/utils/generators/configurators/config_container.hpp +++ b/tools/utils/generators/configurators/config_container.hpp @@ -31,7 +31,7 @@ class ConfigContainer { m_configuration << "testmode " << std::to_string(testMode) << " " << std::to_string(testGroup) << '\n'; } - void saveConfigToFile(std::string filename) { + void saveConfigToFile(const std::string& filename) { std::ofstream file; file.open(filename, std::ofstream::binary); file << m_configuration.str();