diff options
Diffstat (limited to '')
-rw-r--r-- | test/test_helpers/envvar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_helpers/envvar.cpp b/test/test_helpers/envvar.cpp index 7d44b486..9ef93920 100644 --- a/test/test_helpers/envvar.cpp +++ b/test/test_helpers/envvar.cpp @@ -3,11 +3,11 @@ #include "3rd-party/catch.hpp" test_helpers::EnvVar::EnvVar(std::string name_) - : EnvVar(name_, true) + : EnvVar(std::move(name_), true) { - if (name_ == "TZ") { + if (name == "TZ") { throw std::invalid_argument("Using EnvVar(\"TZ\") is discouraged. Try test_helpers::TzEnvVar instead."); - } else if (name_ == "LC_CTYPE") { + } else if (name == "LC_CTYPE") { throw std::invalid_argument("Using EnvVar(\"LC_CTYPE\") is discouraged. Try test_helpers::LcCtypeEnvVar instead."); } } |