From 366fea7aec3858bcaadfe1a66e7ae8afcde76ebc Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Mar 2006 15:00:26 +0000 Subject: More const ref fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3656 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqloper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra/m_sqloper.cpp') diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index f1d54e70a..42746ea01 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -69,7 +69,7 @@ class ModuleSQLOper : public Module ReadConfig(); } - virtual void OnRehash(std::string parameter) + virtual void OnRehash(const std::string ¶meter) { delete Conf; Conf = new ConfigReader(); @@ -81,7 +81,7 @@ class ModuleSQLOper : public Module List[I_OnRehash] = List[I_OnPreCommand] = 1; } - virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user, bool validated) + virtual int OnPreCommand(const std::string &command, char **parameters, int pcnt, userrec *user, bool validated) { if ((command == "OPER") && (validated)) { @@ -91,7 +91,7 @@ class ModuleSQLOper : public Module return 0; } - bool LookupOper(std::string username, std::string password, userrec* user) + bool LookupOper(const std::string &username, const std::string &password, userrec* user) { bool found = false; -- cgit v1.2.3