1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 14:23:13 +02:00

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' {} \;
This commit is contained in:
Adam
2013-05-05 21:05:43 -04:00
parent 3e8752fe66
commit 5b3f81ea78
64 changed files with 260 additions and 266 deletions
+4 -4
View File
@@ -557,13 +557,13 @@ class CSXOP : public Module
for (int i = 0; i < conf->CountBlock("privilege"); ++i)
{
Configuration::Block *block = conf->GetBlock("privilege", i);
const Anope::string &pname = block->Get<const Anope::string &>("name");
const Anope::string &pname = block->Get<const Anope::string>("name");
Privilege *p = PrivilegeManager::FindPrivilege(pname);
if (p == NULL)
continue;
const Anope::string &xop = block->Get<const Anope::string &>("xop");
const Anope::string &xop = block->Get<const Anope::string>("xop");
if (pname.empty() || xop.empty())
continue;
@@ -573,8 +573,8 @@ class CSXOP : public Module
for (int i = 0; i < conf->CountBlock("command"); ++i)
{
Configuration::Block *block = conf->GetBlock("command", i);
const Anope::string &cname = block->Get<const Anope::string &>("name"),
&cserv = block->Get<const Anope::string &>("command");
const Anope::string &cname = block->Get<const Anope::string>("name"),
&cserv = block->Get<const Anope::string>("command");
if (cname.empty() || cserv != "chanserv/xop")
continue;