From 1b2916c8451506adccf3ab0a56bbf836d9f3cb36 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 20:57:56 +0000 Subject: Avoid copying shared_ptr when not necessary. --- src/modules/m_bcrypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_bcrypt.cpp') diff --git a/src/modules/m_bcrypt.cpp b/src/modules/m_bcrypt.cpp index 62e50db07..cac81cfa1 100644 --- a/src/modules/m_bcrypt.cpp +++ b/src/modules/m_bcrypt.cpp @@ -86,7 +86,7 @@ public: void ReadConfig(ConfigStatus& status) override { - auto conf = ServerInstance->Config->ConfValue("bcrypt"); + const auto& conf = ServerInstance->Config->ConfValue("bcrypt"); bcrypt.rounds = conf->getUInt("rounds", 10, 1); } }; -- cgit v1.3.1-10-gc9f91