aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-10-31 23:21:15 +0000
committerGravatar Sadie Powell2020-10-31 23:21:15 +0000
commit1b181b42b82213c884e8aac3a620252102992439 (patch)
treee1eefa83c074695016e94cb97bb34a24909ebb3d /src/modules/m_sqloper.cpp
parentAdd stdalgo::iterator_range and switch config tag reading to use it. (diff)
downloadinspircd++-1b181b42b82213c884e8aac3a620252102992439.tar.gz
inspircd++-1b181b42b82213c884e8aac3a620252102992439.tar.bz2
inspircd++-1b181b42b82213c884e8aac3a620252102992439.zip
Convert ConfigTag from reference<> to std::shared_ptr<>.
Diffstat (limited to 'src/modules/m_sqloper.cpp')
-rw-r--r--src/modules/m_sqloper.cpp4
1 files changed, 2 insertions, 2 deletions
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<ConfigTag> 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())