diff options
| author | 2022-07-22 18:33:38 +0100 | |
|---|---|---|
| committer | 2022-07-22 18:53:21 +0100 | |
| commit | 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch) | |
| tree | 5357669e57bb381c80bfdbd24ed4057a99db8e5b /src/modules/extra/m_mysql.cpp | |
| parent | Update author list. (diff) | |
| download | inspircd++-648f813f8c89e6e7d0ed5bda2c2149bee2babb09.tar.gz inspircd++-648f813f8c89e6e7d0ed5bda2c2149bee2babb09.tar.bz2 inspircd++-648f813f8c89e6e7d0ed5bda2c2149bee2babb09.zip | |
Switch from NULL to nullptr.
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
| -rw-r--r-- | src/modules/extra/m_mysql.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 9e1406578..ead27295e 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -327,7 +327,7 @@ public: const std::string pass = config->getString("pass"); const std::string dbname = config->getString("name"); unsigned int port = static_cast<unsigned int>(config->getUInt("port", 3306, 1, 65535)); - if (!mysql_real_connect(connection, host.c_str(), user.c_str(), pass.c_str(), dbname.c_str(), port, NULL, CLIENT_IGNORE_SIGPIPE)) + if (!mysql_real_connect(connection, host.c_str(), user.c_str(), pass.c_str(), dbname.c_str(), port, nullptr, CLIENT_IGNORE_SIGPIPE)) { ServerInstance->Logs.Normal(MODNAME, "Unable to connect to the %s MySQL server: %s", GetId().c_str(), mysql_error(connection)); @@ -435,7 +435,7 @@ public: void ModuleSQL::init() { - if (mysql_library_init(0, NULL, NULL)) + if (mysql_library_init(0, nullptr, nullptr)) throw ModuleException(this, "Unable to initialise the MySQL library!"); Dispatcher = new DispatcherThread(this); |
