Skip to content

Commit 1f50050

Browse files
committed
clang-tidy fix
1 parent 0dcd917 commit 1f50050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/warnings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ new_warning_type(handle scope, const char *name, handle base = PyExc_RuntimeWarn
4545
+ std::string(name) + "\" exists already.");
4646
}
4747
std::string full_name = scope.attr("__name__").cast<std::string>() + std::string(".") + name;
48-
auto new_ex = PyErr_NewException(const_cast<char *>(full_name.c_str()), base.ptr(), nullptr);
48+
auto *new_ex = PyErr_NewException(const_cast<char *>(full_name.c_str()), base.ptr(), nullptr);
4949
if (!new_ex) {
5050
raise_from(PyExc_SystemError,
5151
"pybind11::warnings::new_warning_type(): PyErr_NewException() call failed.");

0 commit comments

Comments
 (0)