From 33a987368e577c117bff53c240b9a3167a981056 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 3 Nov 2020 19:01:53 +0000 Subject: Replace ConfigTag::create with a public constructor. --- src/modules/m_sqloper.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules/m_sqloper.cpp') diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp index 5d6d86aa9..05331e3b1 100644 --- a/src/modules/m_sqloper.cpp +++ b/src/modules/m_sqloper.cpp @@ -70,8 +70,7 @@ class OperQuery : public SQL::Query res.GetCols(cols); // Create the oper tag as if we were the conf file. - ConfigTag::Items* items; - auto tag = ConfigTag::create("oper", MODNAME, 0, items); + auto tag = std::make_shared("oper", MODNAME, 0); /** 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. @@ -79,7 +78,7 @@ class OperQuery : public SQL::Query for (unsigned int i=0; i < cols.size(); ++i) { if (!row[i].IsNull()) - (*items)[cols[i]] = row[i]; + tag->GetItems()[cols[i]] = row[i]; } const std::string name = tag->getString("name"); -- cgit v1.3.1-10-gc9f91