Skip to content

Commit

Permalink
Made globalRegistrar a const
Browse files Browse the repository at this point in the history
  • Loading branch information
rutayan committed Sep 26, 2022
1 parent 547d112 commit 5dab39f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/catch2/internal/catch_template_test_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@
(void)expander{(reg_test(Types{}, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++)... };/* NOLINT */ \
}\
};\
/* NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) */\
static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
static const int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
TestName<INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(__VA_ARGS__)>();\
return 0;\
}();\
Expand Down

0 comments on commit 5dab39f

Please sign in to comment.