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_cap.cpp | |
| parent | Fix the setter and set time of list modes being lost on netburst. (diff) | |
| download | inspircd++-49339528112c57de5e52f2e8bbea91bf37c3704a.tar.gz inspircd++-49339528112c57de5e52f2e8bbea91bf37c3704a.tar.bz2 inspircd++-49339528112c57de5e52f2e8bbea91bf37c3704a.zip | |
Use emplace_back where possible.
Diffstat (limited to 'src/modules/m_cap.cpp')
| -rw-r--r-- | src/modules/m_cap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 108beac16..e368145b8 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -104,7 +104,7 @@ class Cap::ManagerImpl : public Cap::Manager, public ReloadModule::EventListener continue; ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Module being reloaded implements cap %s, saving cap users", cap->GetName().c_str()); - capmoddata->caps.push_back(CapModData::Data(cap)); + capmoddata->caps.emplace_back(cap); CapModData::Data& capdata = capmoddata->caps.back(); // Populate list with uuids of users who are using the cap |
