diff options
| author | 2020-11-03 19:01:53 +0000 | |
|---|---|---|
| committer | 2020-11-03 19:54:13 +0000 | |
| commit | 33a987368e577c117bff53c240b9a3167a981056 (patch) | |
| tree | b015b1cffb0c829234ebb97112bf61825d78b8bc /src/modules/m_sqloper.cpp | |
| parent | Rename ConfigItems to ConfigTag::Items. (diff) | |
Replace ConfigTag::create with a public constructor.
Diffstat (limited to 'src/modules/m_sqloper.cpp')
| -rw-r--r-- | src/modules/m_sqloper.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<ConfigTag>("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"); |
