From 01a6b5d21c8a24a133693c7c65779cfa78fc164d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 2 Sep 2014 16:32:00 +0200 Subject: Change mode_sequence to be a const ref in ModeParser::Process() Also change the signature of DisplayListModes() to accept a const ref --- src/mode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mode.cpp b/src/mode.cpp index d24346e59..4c31a94d7 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -403,7 +403,7 @@ void ModeParser::Process(const std::vector& parameters, User* user, return; } - std::string mode_sequence = parameters[1]; + const std::string& mode_sequence = parameters[1]; std::string output_mode; std::string output_parameters; @@ -512,7 +512,7 @@ void ModeParser::Process(const std::vector& parameters, User* user, } } -void ModeParser::DisplayListModes(User* user, Channel* chan, std::string &mode_sequence) +void ModeParser::DisplayListModes(User* user, Channel* chan, const std::string& mode_sequence) { seq++; -- cgit v1.2.3