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 /src/xline.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 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 0ba3d6557..efe19411f 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -25,11 +25,11 @@ Serialize::Checker<std::multimap<Anope::string, XLine *, ci::less> > XLineManage void XLine::InitRegex() { - if (this->mask.length() >= 2 && this->mask[0] == '/' && this->mask[this->mask.length() - 1] == '/' && !Config->GetBlock("options")->Get<const Anope::string &>("regexengine").empty()) + if (this->mask.length() >= 2 && this->mask[0] == '/' && this->mask[this->mask.length() - 1] == '/' && !Config->GetBlock("options")->Get<const Anope::string>("regexengine").empty()) { Anope::string stripped_mask = this->mask.substr(1, this->mask.length() - 2); - ServiceReference<RegexProvider> provider("Regex", Config->GetBlock("options")->Get<const Anope::string &>("regexengine")); + ServiceReference<RegexProvider> provider("Regex", Config->GetBlock("options")->Get<const Anope::string>("regexengine")); if (provider) { try |