From c195e03e61ad056f99d68b8136f69516f75c0af6 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 16 Jul 2006 07:23:03 +0000 Subject: 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 --- src/hashcomp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 ""; } - -- cgit v1.2.3