Removed inadvertent use of auto merged from dev-modernise

This commit is contained in:
Phil Nash 2017-08-15 19:34:10 +01:00
parent 70e4af9d44
commit 61c5675c11

View File

@ -77,7 +77,7 @@ namespace Catch {
throw std::runtime_error( "colour mode must be one of: auto, yes or no" ); throw std::runtime_error( "colour mode must be one of: auto, yes or no" );
} }
inline void setWaitForKeypress( ConfigData& config, std::string const& keypress ) { inline void setWaitForKeypress( ConfigData& config, std::string const& keypress ) {
auto keypressLc = toLower( keypress ); std::string keypressLc = toLower( keypress );
if( keypressLc == "start" ) if( keypressLc == "start" )
config.waitForKeypress = WaitForKeypress::BeforeStart; config.waitForKeypress = WaitForKeypress::BeforeStart;
else if( keypressLc == "exit" ) else if( keypressLc == "exit" )