From ed6e9128a4f1d8c5e24be01d8ad9341f83a39562 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 29 May 2015 06:16:24 +0100 Subject: [PATCH] Session's argv now taken by char const* const* - see #427 --- include/catch_session.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/catch_session.hpp b/include/catch_session.hpp index 1b1cba54..9cfc28fd 100644 --- a/include/catch_session.hpp +++ b/include/catch_session.hpp @@ -131,7 +131,7 @@ namespace Catch { Catch::cout() << "For more detail usage please see the project docs\n" << std::endl; } - int applyCommandLine( int argc, char* const argv[], OnUnusedOptions::DoWhat unusedOptionBehaviour = OnUnusedOptions::Fail ) { + int applyCommandLine( int argc, char const* const argv[], OnUnusedOptions::DoWhat unusedOptionBehaviour = OnUnusedOptions::Fail ) { try { m_cli.setThrowOnUnrecognisedTokens( unusedOptionBehaviour == OnUnusedOptions::Fail ); m_unusedTokens = m_cli.parseInto( argc, argv, m_configData ); @@ -158,7 +158,7 @@ namespace Catch { m_config.reset(); } - int run( int argc, char* const argv[] ) { + int run( int argc, char const* const argv[] ) { int returnCode = applyCommandLine( argc, argv ); if( returnCode == 0 )