aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 20:57:56 +0000
committerGravatar Sadie Powell2023-01-10 21:27:18 +0000
commit1b2916c8451506adccf3ab0a56bbf836d9f3cb36 (patch)
tree8675a6bf6fdf97b0f7dba5449fe59f1f669986a2 /src/modules/m_sqloper.cpp
parentFix calling the base Set/Unset implementation in ListExtItem. (diff)
Avoid copying shared_ptr<ConfigTag> when not necessary.
Diffstat (limited to 'src/modules/m_sqloper.cpp')
-rw-r--r--src/modules/m_sqloper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp
index 20bf8596f..85a9f7f6c 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -173,7 +173,7 @@ public:
// Clear list of our blocks, as ConfigReader just wiped them anyway
my_blocks.clear();
- auto tag = ServerInstance->Config->ConfValue("sqloper");
+ const auto& tag = ServerInstance->Config->ConfValue("sqloper");
std::string dbid = tag->getString("dbid");
if (dbid.empty())