From dfc93aecb2ae3eb2e59b872430d2c7255c0bf5e8 Mon Sep 17 00:00:00 2001 From: Shota Minami Date: Thu, 6 Mar 2025 13:40:52 +0900 Subject: [PATCH] Change call by value to call by reference Co-authored-by: Tatsuya Yamasaki --- openscenario/openscenario_interpreter/src/reader/attribute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openscenario/openscenario_interpreter/src/reader/attribute.cpp b/openscenario/openscenario_interpreter/src/reader/attribute.cpp index c04707b7fbc..90b91e4b4b4 100644 --- a/openscenario/openscenario_interpreter/src/reader/attribute.cpp +++ b/openscenario/openscenario_interpreter/src/reader/attribute.cpp @@ -20,7 +20,7 @@ namespace openscenario_interpreter { inline namespace reader { -auto substitute(std::string attribute, const Scope & scope) -> String +auto substitute(const std::string & attribute, const Scope & scope) -> String { auto dirname = [](auto &&, auto && scope) { return scope.dirname(); };