Skip to content

Commit

Permalink
update context.cpp use empty() to avoid clang-tidy warnings (Rosett…
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored and ldedier-gpfw committed Sep 16, 2024
1 parent b19d730 commit 2f0f98c
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.second : p.first+"::"+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 2f0f98c

Please sign in to comment.