fix(library/module_mgr): do not perform unnecessary copy
This commit is contained in:
parent
028bf36152
commit
cf3f398753
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
module_info::parse_result execute() override {
|
||||
module_loader import_fn = [=] (module_id const & base, module_name const & import) {
|
||||
for (auto d : m_deps) {
|
||||
for (auto & d : m_deps) {
|
||||
if (std::get<0>(d) == base &&
|
||||
std::get<1>(d).m_name == import.m_name &&
|
||||
std::get<1>(d).m_relative == import.m_relative) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue