diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 07:23:03 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 07:23:03 +0000 |
commit | c195e03e61ad056f99d68b8136f69516f75c0af6 (patch) | |
tree | 00a8d85a3f073159d3c8b404bd58cbebcd178dd4 | |
parent | b3bab5a002f4c0ad4543aad33619895bd2fded9e (diff) |
const the std::string reference in tokenstream's constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4400 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/hashcomp.h | 2 | ||||
-rw-r--r-- | src/hashcomp.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index b818b16f5..22e9f1470 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -87,7 +87,7 @@ namespace irc std::string::iterator n; bool last_pushed; public: - tokenstream(std::string &source); + tokenstream(const std::string &source); ~tokenstream(); const std::string GetToken(); diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 924ffa940..5e6d2c077 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -178,7 +178,7 @@ std::istream& operator>>(std::istream &is, irc::string &str) return is; } -irc::tokenstream::tokenstream(std::string &source) : tokens(source), last_pushed(false) +irc::tokenstream::tokenstream(const std::string &source) : tokens(source), last_pushed(false) { last_starting_position = tokens.begin(); n = tokens.begin(); @@ -219,4 +219,3 @@ const std::string irc::tokenstream::GetToken() } return ""; } - |