diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_mssql.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/extra/m_mssql.cpp b/src/modules/extra/m_mssql.cpp index 8cd9e2ea7..43d546819 100644 --- a/src/modules/extra/m_mssql.cpp +++ b/src/modules/extra/m_mssql.cpp @@ -50,11 +50,9 @@ Mutex* LoggingMutex; class QueryThread : public SocketThread { private: - ModuleMsSQL* Parent; + ModuleMsSQL* const Parent; public: - QueryThread(ModuleMsSQL* mod) - : SocketThread(si), Parent(mod), { - } + QueryThread(ModuleMsSQL* mod) : Parent(mod) { } ~QueryThread() { } virtual void Run(); virtual void OnNotify(); @@ -508,7 +506,7 @@ class SQLConn : public classbase { SQLConn* sc = (SQLConn*)pContext->parent; LoggingMutex->Lock(); - sc->ServerInstance->Logs->Log("m_mssql", DEBUG, "Message for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); + ServerInstance->Logs->Log("m_mssql", DEBUG, "Message for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); LoggingMutex->Unlock(); return 0; } @@ -517,7 +515,7 @@ class SQLConn : public classbase { SQLConn* sc = (SQLConn*)pContext->parent; LoggingMutex->Lock(); - sc->ServerInstance->Logs->Log("m_mssql", DEFAULT, "Error for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); + ServerInstance->Logs->Log("m_mssql", DEFAULT, "Error for DB with id: %s -> %s", sc->host.id.c_str(), pMessage->message); LoggingMutex->Unlock(); return 0; } |