From 5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 21:05:43 -0400 Subject: That doesn't work either, just don't use references. find ./ -name '*.cpp' -exec sed -i 's/Get/Get/g' {} \; --- include/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index 5d9005f63..194b7fe74 100644 --- a/include/config.h +++ b/include/config.h @@ -49,7 +49,7 @@ namespace Configuration */ template T Get(const Anope::string &tag, const Anope::string &def) const { - const Anope::string &value = this->Get(tag, def); + const Anope::string &value = this->Get(tag, def); try { return convertTo(value); @@ -64,7 +64,7 @@ namespace Configuration const item_map* GetItems() const; }; - template<> CoreExport const Anope::string& Block::Get(const Anope::string &tag, const Anope::string& def) const; + template<> CoreExport const Anope::string Block::Get(const Anope::string &tag, const Anope::string& def) const; template<> CoreExport time_t Block::Get(const Anope::string &tag, const Anope::string &def) const; template<> CoreExport const char* Block::Get(const Anope::string &tag, const Anope::string &def) const; template<> CoreExport bool Block::Get(const Anope::string &tag, const Anope::string &def) const; -- cgit