diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-23 04:58:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-23 05:04:19 +0300 |
commit | 2c916c97ac744f5ef6ba35a6f7db68e96c4fbabc (patch) | |
tree | b4330ba48c01527c4550fca287dc4ad362bbaa43 /source/blender/blenlib/tests/BLI_string_test.cc | |
parent | 0f427f4eb1c43b2e2336991de27f8985a4e0e824 (diff) |
Cleanup: clang-tidy quiet equals-default, nullptr warnings
Diffstat (limited to 'source/blender/blenlib/tests/BLI_string_test.cc')
-rw-r--r-- | source/blender/blenlib/tests/BLI_string_test.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/blenlib/tests/BLI_string_test.cc b/source/blender/blenlib/tests/BLI_string_test.cc index 281b7103b75..0b68ee8b93c 100644 --- a/source/blender/blenlib/tests/BLI_string_test.cc +++ b/source/blender/blenlib/tests/BLI_string_test.cc @@ -421,9 +421,7 @@ TEST(string, StrFormatByteUnits) } struct WordInfo { - WordInfo() - { - } + WordInfo() = default; WordInfo(int start, int end) : start(start), end(end) { } @@ -441,9 +439,7 @@ static std::ostream &operator<<(std::ostream &os, const WordInfo &word_info) class StringFindSplitWords : public testing::Test { protected: - StringFindSplitWords() - { - } + StringFindSplitWords() = default; /* If max_words is -1 it will be initialized from the number of expected * words +1. This way there is no need to pass an explicit number of words, @@ -807,9 +803,7 @@ TEST_F(StringCasecmpNatural, TextAndNumbers) class StringEscape : public testing::Test { protected: - StringEscape() - { - } + StringEscape() = default; using CompareWordsArray = vector<std::array<const char *, 2>>; |