summaryrefslogtreecommitdiffstats
path: root/src/mgr/ActivePyModules.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgr/ActivePyModules.cc')
-rw-r--r--src/mgr/ActivePyModules.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mgr/ActivePyModules.cc b/src/mgr/ActivePyModules.cc
index 17bb3951142..aebbb5d8c9a 100644
--- a/src/mgr/ActivePyModules.cc
+++ b/src/mgr/ActivePyModules.cc
@@ -770,9 +770,9 @@ std::map<std::string, std::string> ActivePyModules::get_services() const
std::map<std::string, std::string> result;
std::lock_guard l(lock);
for (const auto& [name, module] : modules) {
- std::string svc_str = module->get_uri();
+ const std::string_view svc_str = module->get_uri();
if (!svc_str.empty()) {
- result[name] = svc_str;
+ result.emplace(name, svc_str);
}
}