diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp index a5b09695..bdb3f66b 100644 --- a/include/internal/catch_commandline.hpp +++ b/include/internal/catch_commandline.hpp @@ -77,7 +77,7 @@ namespace Catch { throw std::runtime_error( "colour mode must be one of: auto, yes or no" ); } inline void setWaitForKeypress( ConfigData& config, std::string const& keypress ) { - auto keypressLc = toLower( keypress ); + std::string keypressLc = toLower( keypress ); if( keypressLc == "start" ) config.waitForKeypress = WaitForKeypress::BeforeStart; else if( keypressLc == "exit" )