From 56ded38a45a89b428ff45e31b138483a76ba4587 Mon Sep 17 00:00:00 2001 From: om Date: Fri, 7 Jul 2006 13:34:10 +0000 Subject: change std::string's to const std::string references for *Feature() funcs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4121 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 4e98696bd..ddfbb173b 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -351,7 +351,7 @@ long Server::PriorityBefore(const std::string &modulename) return PRIORITY_DONTCARE; } -bool Server::PublishFeature(std::string FeatureName, Module* Mod) +bool Server::PublishFeature(const std::string &FeatureName, Module* Mod) { if (Features.find(FeatureName) == Features.end()) { @@ -361,7 +361,7 @@ bool Server::PublishFeature(std::string FeatureName, Module* Mod) return false; } -bool Server::UnpublishFeature(std::string FeatureName) +bool Server::UnpublishFeature(const std::string &FeatureName) { featurelist::iterator iter = Features.find(FeatureName); @@ -372,7 +372,7 @@ bool Server::UnpublishFeature(std::string FeatureName) return true; } -Module* Server::FindFeature(std::string FeatureName) +Module* Server::FindFeature(const std::string &FeatureName) { featurelist::iterator iter = Features.find(FeatureName); -- cgit v1.2.3