summaryrefslogtreecommitdiff
path: root/modules/extra/mysql/db_mysql_read.cpp
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_read.cpp
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_read.cpp')
-rw-r--r--modules/extra/mysql/db_mysql_read.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/extra/mysql/db_mysql_read.cpp b/modules/extra/mysql/db_mysql_read.cpp
index 3ffc82366..ff608b700 100644
--- a/modules/extra/mysql/db_mysql_read.cpp
+++ b/modules/extra/mysql/db_mysql_read.cpp
@@ -237,37 +237,37 @@ static void LoadDatabase()
ci->bantype = atoi(qres[i]["bantype"].c_str());
if (qres[i]["mlock_on"].size())
{
- std::vector<std::string> modes;
+ std::vector<Anope::string> modes;
std::string buf;
spacesepstream sep(SQLAssign(qres[i]["mlock_on"]));
while (sep.GetToken(buf))
- modes.push_back(buf);
+ modes.push_back(Anope::string(buf));
- ci->Extend("db_mlock_modes_on", new ExtensibleItemRegular<std::vector<std::string> >(modes));
+ ci->Extend("db_mlock_modes_on", new ExtensibleItemRegular<std::vector<Anope::string> >(modes));
}
if (qres[i]["mlock_off"].size())
{
- std::vector<std::string> modes;
+ std::vector<Anope::string> modes;
std::string buf;
spacesepstream sep(SQLAssign(qres[i]["mlock_off"]));
while (sep.GetToken(buf))
- modes.push_back(buf);
+ modes.push_back(Anope::string(buf));
- ci->Extend("db_mlock_modes_off", new ExtensibleItemRegular<std::vector<std::string> >(modes));
+ ci->Extend("db_mlock_modes_off", new ExtensibleItemRegular<std::vector<Anope::string> >(modes));
}
if (qres[i]["mlock_params"].size())
{
- std::vector<std::pair<std::string, std::string> > mlp;
+ std::vector<std::pair<Anope::string, Anope::string> > mlp;
std::string buf, buf2;
spacesepstream sep(SQLAssign(qres[i]["mlock_params"]));
while (sep.GetToken(buf) && sep.GetToken(buf2))
- mlp.push_back(std::make_pair(buf, buf2));
+ mlp.push_back(std::make_pair(Anope::string(buf), Anope::string(buf2)));
- ci->Extend("db_mlp", new ExtensibleItemRegular<std::vector<std::pair<std::string, std::string> > >(mlp));
+ ci->Extend("db_mlp", new ExtensibleItemRegular<std::vector<std::pair<Anope::string, Anope::string> > >(mlp));
}
if (qres[i]["entry_message"].size())
ci->entry_message = sstrdup(qres[i]["entry_message"].c_str());
@@ -594,7 +594,7 @@ static void LoadDatabase()
class DBMySQLRead : public DBMySQL
{
public:
- DBMySQLRead(const std::string &modname, const std::string &creator) : DBMySQL(modname, creator)
+ DBMySQLRead(const Anope::string &modname, const Anope::string &creator) : DBMySQL(modname, creator)
{
Implementation i[] = { I_OnLoadDatabase };
ModuleManager::Attach(i, this, 1);