mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 17:43:53 +00:00
resolve clang-tidy warning
This commit is contained in:
parent
28492edc83
commit
1593ebc7be
@ -16,7 +16,7 @@
|
||||
TEST_SUBMODULE(buffers, m) {
|
||||
m.def("format_descriptor_format", [](const std::string &cpp_name) {
|
||||
// https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables
|
||||
static auto table = new std::map<std::string, std::string>;
|
||||
static auto *table = new std::map<std::string, std::string>;
|
||||
if (table->empty()) {
|
||||
#define PYBIND11_ASSIGN_HELPER(...) \
|
||||
(*table)[#__VA_ARGS__] = py::format_descriptor<__VA_ARGS__>::format();
|
||||
|
Loading…
Reference in New Issue
Block a user