diff options
| author | 2021-03-30 19:44:07 +0100 | |
|---|---|---|
| committer | 2021-03-30 19:44:07 +0100 | |
| commit | 49339528112c57de5e52f2e8bbea91bf37c3704a (patch) | |
| tree | 6e8088af58b4df52958e8a691a6d36386d09df66 /src/modules/m_httpd_acl.cpp | |
| parent | Fix the setter and set time of list modes being lost on netburst. (diff) | |
Use emplace_back where possible.
Diffstat (limited to 'src/modules/m_httpd_acl.cpp')
| -rw-r--r-- | src/modules/m_httpd_acl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp index dcf8bda1d..4ba3622c7 100644 --- a/src/modules/m_httpd_acl.cpp +++ b/src/modules/m_httpd_acl.cpp @@ -93,7 +93,7 @@ class ModuleHTTPAccessList : public Module, public HTTPACLEventListener ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Read ACL: path=%s pass=%s whitelist=%s blacklist=%s", path.c_str(), password.c_str(), whitelist.c_str(), blacklist.c_str()); - new_acls.push_back(HTTPACL(path, username, password, whitelist, blacklist)); + new_acls.emplace_back(path, username, password, whitelist, blacklist); } acl_list.swap(new_acls); } |
