mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-24 05:25:40 +02:00
Fixed "char * const" versus "const char *" confusions throught the code base.
This commit is contained in:
@@ -16,7 +16,7 @@ If you just need to have code that executes before and/ or after Catch this is t
|
||||
#define CATCH_CONFIG_RUNNER
|
||||
#include "catch.hpp"
|
||||
|
||||
int main( int argc, char* const argv[] )
|
||||
int main( int argc, char const * argv[] )
|
||||
{
|
||||
// global setup...
|
||||
|
||||
@@ -36,7 +36,7 @@ If you still want Catch to process the command line, but you want to programatic
|
||||
#define CATCH_CONFIG_RUNNER
|
||||
#include "catch.hpp"
|
||||
|
||||
int main( int argc, char* const argv[] )
|
||||
int main( int argc, char const * argv[] )
|
||||
{
|
||||
Catch::Session session; // There must be exactly once instance
|
||||
|
||||
@@ -65,4 +65,4 @@ Catch embeds a powerful command line parser which you can also use to parse your
|
||||
|
||||
---
|
||||
|
||||
[Home](Readme.md)
|
||||
[Home](Readme.md)
|
||||
|
Reference in New Issue
Block a user