From 1b181b42b82213c884e8aac3a620252102992439 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 31 Oct 2020 23:21:15 +0000 Subject: Convert ConfigTag from reference<> to std::shared_ptr<>. --- src/modules/m_sqloper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_sqloper.cpp') diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp index fe37f1fb2..11c995dab 100644 --- a/src/modules/m_sqloper.cpp +++ b/src/modules/m_sqloper.cpp @@ -71,7 +71,7 @@ class OperQuery : public SQL::Query // Create the oper tag as if we were the conf file. ConfigItems* items; - reference tag = ConfigTag::create("oper", MODNAME, 0, items); + auto tag = ConfigTag::create("oper", MODNAME, 0, items); /** Iterate through each column in the SQLOpers table. An infinite number of fields can be specified. * Column 'x' with cell value 'y' will be the same as x=y in an OPER block in opers.conf. @@ -183,7 +183,7 @@ public: // Clear list of our blocks, as ConfigReader just wiped them anyway my_blocks.clear(); - ConfigTag* tag = ServerInstance->Config->ConfValue("sqloper"); + auto tag = ServerInstance->Config->ConfValue("sqloper"); std::string dbid = tag->getString("dbid"); if (dbid.empty()) -- cgit v1.3.1-10-gc9f91