summaryrefslogtreecommitdiff
path: root/modules/extra/mysql/db_mysql.h
diff options
context:
space:
mode:
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);