diff options
| author | 2023-01-10 20:57:56 +0000 | |
|---|---|---|
| committer | 2023-01-10 21:27:18 +0000 | |
| commit | 1b2916c8451506adccf3ab0a56bbf836d9f3cb36 (patch) | |
| tree | 8675a6bf6fdf97b0f7dba5449fe59f1f669986a2 /src/inspircd.cpp | |
| parent | Fix calling the base Set/Unset implementation in ListExtItem. (diff) | |
Avoid copying shared_ptr<ConfigTag> when not necessary.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 15813c8fc..0dce19f6a 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -141,7 +141,7 @@ namespace void DropRoot() { #ifndef _WIN32 - auto security = ServerInstance->Config->ConfValue("security"); + const auto& security = ServerInstance->Config->ConfValue("security"); const std::string SetGroup = security->getString("runasgroup"); if (!SetGroup.empty()) |
