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_xline_db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_xline_db.cpp') diff --git a/src/modules/m_xline_db.cpp b/src/modules/m_xline_db.cpp index 48de8acd3..ecdc0293e 100644 --- a/src/modules/m_xline_db.cpp +++ b/src/modules/m_xline_db.cpp @@ -55,7 +55,7 @@ public: * Imagine a scenario where the new file already exists. Merging the current XLines with the existing database is likely a bad idea * ...and so is discarding all current in-memory XLines for the ones in the database. */ - auto Conf = ServerInstance->Config->ConfValue("xlinedb"); + const auto& Conf = ServerInstance->Config->ConfValue("xlinedb"); xlinedbpath = ServerInstance->Config->Paths.PrependData(Conf->getString("filename", "xline.db", 1)); SetInterval(Conf->getDuration("saveperiod", 5)); -- cgit v1.3.1-10-gc9f91