diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-25 21:58:20 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-25 21:58:20 -0400 |
commit | ae38212c1ce829c783edf971081c90137abb49a0 (patch) | |
tree | 5c652d9cdc38103dec6fa112d57fca882b4e3e44 /modules/extra/mysql/db_mysql.h | |
parent | 15d7f0f6fe8bb903275f603f734c13f65f3aa906 (diff) |
Epic commit to replace most of the strings in Anope with a single Anope::string class, plus some other little fixes here and there. If you follow 1.9.x development and are testing things, THIS is one of those things that NEEDS testing.
Diffstat (limited to 'modules/extra/mysql/db_mysql.h')
-rw-r--r-- | modules/extra/mysql/db_mysql.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/extra/mysql/db_mysql.h b/modules/extra/mysql/db_mysql.h index 32a2469c9..fcad2f24c 100644 --- a/modules/extra/mysql/db_mysql.h +++ b/modules/extra/mysql/db_mysql.h @@ -176,7 +176,7 @@ class DBMySQL : public Module unsigned int Port; unsigned int Delay; - DBMySQL(const std::string &modname, const std::string &creator) : Module(modname, creator) + DBMySQL(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { me = this; @@ -184,7 +184,7 @@ class DBMySQL : public Module this->SetType(DATABASE); if (!LoadConfig()) - throw ModuleException("Couldn't load config"); + throw ModuleException(Anope::string("Couldn't load config")); Con = new mysqlpp::Connection(false); Ne = new mysqlpp::NoExceptions(Con); @@ -193,7 +193,7 @@ class DBMySQL : public Module std::string Error = "MySQL: Error connecting to SQL server: "; Error += Con->error(); delete Con; - throw ModuleException(Error.c_str()); + throw ModuleException(Anope::string(Error)); } mysqlpp::Query query(Con); |