diff options
author | Adam <Adam@anope.org> | 2013-05-05 21:05:43 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-05 21:05:43 -0400 |
commit | 5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e (patch) | |
tree | 3536557fea79ffd77bb5a885465e579eeeafb8ff /modules/extra/m_mysql.cpp | |
parent | 3e8752fe665c3cdf683f2b5fa271231fb3a624df (diff) |
That doesn't work either, just don't use references.
find ./ -name '*.cpp' -exec sed -i 's/Get<const Anope::string\&>/Get<const Anope::string>/g' {} \;
Diffstat (limited to 'modules/extra/m_mysql.cpp')
-rw-r--r-- | modules/extra/m_mysql.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index 372cb6982..b8270b91f 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -200,7 +200,7 @@ class ModuleSQL : public Module, public Pipe ++it; for (i = 0; i < Config->CountBlock("mysql"); ++i) - if (Config->GetBlock("mysql", i)->Get<const Anope::string &>("name", "main") == cname) + if (Config->GetBlock("mysql", i)->Get<const Anope::string>("name", "main") == cname) break; if (i == num) @@ -215,14 +215,14 @@ class ModuleSQL : public Module, public Pipe for (i = 0; i < Config->CountBlock("mysql"); ++i) { Configuration::Block *block = Config->GetBlock("mysql", i); - const Anope::string &connname = block->Get<const Anope::string &>("name", "mysql/main"); + const Anope::string &connname = block->Get<const Anope::string>("name", "mysql/main"); if (this->MySQLServices.find(connname) == this->MySQLServices.end()) { - const Anope::string &database = block->Get<const Anope::string &>("database", "anope"); - const Anope::string &server = block->Get<const Anope::string &>("server", "127.0.0.1"); - const Anope::string &user = block->Get<const Anope::string &>("username", "anope"); - const Anope::string &password = block->Get<const Anope::string &>("password"); + const Anope::string &database = block->Get<const Anope::string>("database", "anope"); + const Anope::string &server = block->Get<const Anope::string>("server", "127.0.0.1"); + const Anope::string &user = block->Get<const Anope::string>("username", "anope"); + const Anope::string &password = block->Get<const Anope::string>("password"); int port = block->Get<int>("port", "3306"); try |