From 2b734a7ec429825c7007c1093883229e069d36c7 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 8 Jul 2019 15:48:59 +0200 Subject: Apply various suggestions by cppcheck Reported-By: cppcheck --- methods/rsh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'methods/rsh.h') diff --git a/methods/rsh.h b/methods/rsh.h index acdcb64e3..7545d5815 100644 --- a/methods/rsh.h +++ b/methods/rsh.h @@ -35,8 +35,8 @@ class RSHConn // Raw connection IO bool WriteMsg(std::string &Text,bool Sync,const char *Fmt,...); - bool Connect(std::string Host, std::string User); - bool Connect(std::string Host, unsigned int Port, std::string User); + bool Connect(std::string const &Host, std::string const &User); + bool Connect(std::string const &Host, unsigned int Port, std::string const &User); bool Comp(URI Other) const {return Other.Host == ServerName.Host && Other.Port == ServerName.Port;}; // Connection control -- cgit v1.2.3