aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-01 05:14:58 +0000
committerGravatar Sadie Powell2022-12-01 05:25:01 +0000
commit45e56e5ee1bdb9e169be957e21a4f7b536e417ff (patch)
tree72642028744c278ca476e656933716ac9f7357b8 /src/modules/extra/m_pgsql.cpp
parentMerge branch 'insp3' into master. (diff)
Yet more stylistic fixes.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
-rw-r--r--src/modules/extra/m_pgsql.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index 980ccd627..912b4f18c 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -79,7 +79,9 @@ class ReconnectTimer final
private:
ModulePgSQL* mod;
public:
- ReconnectTimer(ModulePgSQL* m) : Timer(5, false), mod(m)
+ ReconnectTimer(ModulePgSQL* m)
+ : Timer(5, false)
+ , mod(m)
{
}
bool Tick() override;
@@ -89,7 +91,11 @@ struct QueueItem final
{
SQL::Query* c;
std::string q;
- QueueItem(SQL::Query* C, const std::string& Q) : c(C), q(Q) {}
+ QueueItem(SQL::Query* C, const std::string& Q)
+ : c(C)
+ , q(Q)
+ {
+ }
};
/** PgSQLresult is a subclass of the mostly-pure-virtual class SQLresult.
@@ -422,7 +428,7 @@ restart:
ServerInstance->Logs.Debug(MODNAME, "Executing PostgreSQL query: " + q);
if (qinprog.q.empty())
{
- DoQuery(QueueItem(req,q));
+ DoQuery(QueueItem(req, q));
}
else
{