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_enum_values_registry.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_enum_values_registry.cpp')
| -rw-r--r-- | src/catch2/catch_enum_values_registry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/catch_enum_values_registry.cpp b/src/catch2/catch_enum_values_registry.cpp index 79261bcf..11d15dc6 100644 --- a/src/catch2/catch_enum_values_registry.cpp +++ b/src/catch2/catch_enum_values_registry.cpp @@ -60,7 +60,7 @@ namespace Catch { assert( valueNames.size() == values.size() ); std::size_t i = 0; for( auto value : values ) - enumInfo->m_values.push_back({ value, valueNames[i++] }); + enumInfo->m_values.emplace_back(value, valueNames[i++]); return enumInfo; } |