diff options
| author | 2023-01-10 20:57:56 +0000 | |
|---|---|---|
| committer | 2023-01-10 21:27:18 +0000 | |
| commit | 1b2916c8451506adccf3ab0a56bbf836d9f3cb36 (patch) | |
| tree | 8675a6bf6fdf97b0f7dba5449fe59f1f669986a2 /src/modules/m_disable.cpp | |
| parent | Fix calling the base Set/Unset implementation in ListExtItem. (diff) | |
| download | inspircd++-1b2916c8451506adccf3ab0a56bbf836d9f3cb36.tar.gz inspircd++-1b2916c8451506adccf3ab0a56bbf836d9f3cb36.tar.bz2 inspircd++-1b2916c8451506adccf3ab0a56bbf836d9f3cb36.zip | |
Avoid copying shared_ptr<ConfigTag> when not necessary.
Diffstat (limited to 'src/modules/m_disable.cpp')
| -rw-r--r-- | src/modules/m_disable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index e9610209f..9f0c0dfa2 100644 --- a/src/modules/m_disable.cpp +++ b/src/modules/m_disable.cpp @@ -42,7 +42,7 @@ private: bool notifyopers; ModeParser::ModeStatus usermodes; - void ReadModes(std::shared_ptr<ConfigTag> tag, const std::string& field, ModeType type, ModeParser::ModeStatus& status) + void ReadModes(const std::shared_ptr<ConfigTag>& tag, const std::string& field, ModeType type, ModeParser::ModeStatus& status) { for (const auto& chr : tag->getString(field)) { @@ -83,7 +83,7 @@ public: void ReadConfig(ConfigStatus& status) override { - auto tag = ServerInstance->Config->ConfValue("disabled"); + const auto& tag = ServerInstance->Config->ConfValue("disabled"); // Parse the disabled commands. CommandList newcommands; |
