Skip to content

Commit 5168116

Browse files
committed
Fix clang-tidy error: 'auto reg' can be declared as 'auto *reg' [readability-qualified-auto,-warnings-as-errors]
1 parent 696b80a commit 5168116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/type_caster_odr_guard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using type_caster_odr_guard_registry_type = std::unordered_map<std::type_index,
3232

3333
inline type_caster_odr_guard_registry_type &type_caster_odr_guard_registry() {
3434
// Using the no-destructor idiom (maximizes safety).
35-
static auto reg = new type_caster_odr_guard_registry_type();
35+
static auto *reg = new type_caster_odr_guard_registry_type();
3636
return *reg;
3737
}
3838

0 commit comments

Comments
 (0)