Fix clang-tidy error: 'auto reg' can be declared as 'auto *reg' [readability-qualified-auto,-warnings-as-errors]

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-07-15 11:35:17 -07:00
parent 696b80a59b
commit 516811642e

View File

@ -32,7 +32,7 @@ using type_caster_odr_guard_registry_type = std::unordered_map<std::type_index,
inline type_caster_odr_guard_registry_type &type_caster_odr_guard_registry() {
// Using the no-destructor idiom (maximizes safety).
static auto reg = new type_caster_odr_guard_registry_type();
static auto *reg = new type_caster_odr_guard_registry_type();
return *reg;
}