diff options
| author | offa | 2020-01-21 21:04:42 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-16 15:25:23 +0100 |
| commit | 06c32862b3d7d20544ba876e590e799667b3afa8 (patch) | |
| tree | 3f15b5a7abc220c562c353f128c989ba312f782f /src/catch2/catch_session.cpp | |
| parent | ab520f4e97ad5e9b01c0f08cda868d9690d35aff (diff) | |
| download | catch3-06c32862b3d7d20544ba876e590e799667b3afa8.tar.gz | |
Some refactorings:
- Overrides added
- usages of push_back() replaced with emplace_back()
- Loop variable made const-refernce
- NULL replaced with nullptr
- Names used in the declaration and definition unified
- size() replaced with empty
- Identical cases merged
Diffstat (limited to 'src/catch2/catch_session.cpp')
| -rw-r--r-- | src/catch2/catch_session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/catch_session.cpp b/src/catch2/catch_session.cpp index fd3e4f62..c839eacf 100644 --- a/src/catch2/catch_session.cpp +++ b/src/catch2/catch_session.cpp @@ -204,11 +204,11 @@ namespace Catch { char **utf8Argv = new char *[ argc ]; for ( int i = 0; i < argc; ++i ) { - int bufSize = WideCharToMultiByte( CP_UTF8, 0, argv[i], -1, NULL, 0, NULL, NULL ); + int bufSize = WideCharToMultiByte( CP_UTF8, 0, argv[i], -1, nullptr, 0, nullptr, nullptr ); utf8Argv[ i ] = new char[ bufSize ]; - WideCharToMultiByte( CP_UTF8, 0, argv[i], -1, utf8Argv[i], bufSize, NULL, NULL ); + WideCharToMultiByte( CP_UTF8, 0, argv[i], -1, utf8Argv[i], bufSize, nullptr, nullptr ); } int returnCode = applyCommandLine( argc, utf8Argv ); |