Skip to content

Commit

Permalink
Update context.cpp use empty()
Browse files Browse the repository at this point in the history
Update context.cpp use empty() to avoid clang-tidy warnings
  • Loading branch information
andriish authored Apr 4, 2024
1 parent f8aeced commit 05da441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ PYBIND11_MODULE({2}, root_module) {{
std::vector< std::pair<std::string, std::string> > sub_modules {{
{3} }};
for(auto &p : sub_modules ) modules[p.first.size() ? p.first+"::"+p.second : p.second] = modules[p.first].def_submodule( mangle_namespace_name(p.second).c_str(), ("Bindings for " + p.first + "::" + p.second + " namespace").c_str() );
for(auto &p : sub_modules ) modules[ !p.first.empty() ? p.first+"::"+p.second : p.second] = modules[p.first].def_submodule( mangle_namespace_name(p.second).c_str(), ("Bindings for " + p.first + "::" + p.second + " namespace").c_str() );
//pybind11::class_<std::shared_ptr<void>>(M(""), "_encapsulated_data_");
Expand Down

0 comments on commit 05da441

Please sign in to comment.