aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extra/pgsql.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-09-13 14:54:16 +0100
committerGravatar Sadie Powell2024-09-13 15:01:47 +0100
commit4c9e3aeb8b55c35223485ee91ce964fed4b3625a (patch)
tree3c70174bed186d2a70b5b9cc70554caf5654e3ba /modules/extra/pgsql.cpp
parentMerge branch 'insp4' into master. (diff)
parentUse reference<>::ptr() in more places. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/extra/pgsql.cpp')
-rw-r--r--modules/extra/pgsql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/pgsql.cpp b/modules/extra/pgsql.cpp
index 63074fef3..e4e656771 100644
--- a/modules/extra/pgsql.cpp
+++ b/modules/extra/pgsql.cpp
@@ -677,7 +677,7 @@ bool ReconnectTimer::Tick()
void SQLConn::DelayReconnect()
{
status = DEAD;
- ModulePgSQL* mod = (ModulePgSQL*)(Module*)creator;
+ auto* mod = static_cast<ModulePgSQL*>(creator.ptr());
ConnMap::iterator it = mod->connections.find(conf->getString("id"));
if (it != mod->connections.end())