diff options
| author | 2020-10-31 23:21:15 +0000 | |
|---|---|---|
| committer | 2020-10-31 23:21:15 +0000 | |
| commit | 1b181b42b82213c884e8aac3a620252102992439 (patch) | |
| tree | e1eefa83c074695016e94cb97bb34a24909ebb3d /src/modules/m_httpd_config.cpp | |
| parent | Add stdalgo::iterator_range and switch config tag reading to use it. (diff) | |
Convert ConfigTag from reference<> to std::shared_ptr<>.
Diffstat (limited to 'src/modules/m_httpd_config.cpp')
| -rw-r--r-- | src/modules/m_httpd_config.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_httpd_config.cpp b/src/modules/m_httpd_config.cpp index db350c7b2..b9cd256b8 100644 --- a/src/modules/m_httpd_config.cpp +++ b/src/modules/m_httpd_config.cpp @@ -47,11 +47,9 @@ class ModuleHttpConfig : public Module, public HTTPRequestEventListener ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Handling request for the HTTP /config route"); std::stringstream buffer; - ConfigDataHash& config = ServerInstance->Config->config_data; - for (ConfigDataHash::const_iterator citer = config.begin(); citer != config.end(); ++citer) + for (auto& [_, tag] : ServerInstance->Config->config_data) { // Show the location of the tag in a comment. - ConfigTag* tag = citer->second; buffer << "# " << tag->getTagLocation() << std::endl << '<' << tag->tag << ' '; |
