summaryrefslogtreecommitdiff
path: root/modules/extra/mysql/db_mysql.h
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-25 21:58:20 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-25 21:58:20 -0400
commitae38212c1ce829c783edf971081c90137abb49a0 (patch)
tree5c652d9cdc38103dec6fa112d57fca882b4e3e44 /modules/extra/mysql/db_mysql.h
parent15d7f0f6fe8bb903275f603f734c13f65f3aa906 (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.h6
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);