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_xline_db.cpp | |
| parent | Fix calling the base Set/Unset implementation in ListExtItem. (diff) | |
Avoid copying shared_ptr<ConfigTag> when not necessary.
Diffstat (limited to 'src/modules/m_xline_db.cpp')
| -rw-r--r-- | src/modules/m_xline_db.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |
