diff options
author | David Kalnischkies <david@kalnischkies.de> | 2019-07-08 15:48:59 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2019-07-08 15:51:17 +0200 |
commit | 2b734a7ec429825c7007c1093883229e069d36c7 (patch) | |
tree | b67360f3201634c82f5a9e7dd84f47b28fa63acb /methods/rsh.cc | |
parent | cbe90ee516d7f747f981e423f164f99eb767240b (diff) |
Apply various suggestions by cppcheck
Reported-By: cppcheck
Diffstat (limited to 'methods/rsh.cc')
-rw-r--r-- | methods/rsh.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/rsh.cc b/methods/rsh.cc index 5c08959c6..cc42b43e7 100644 --- a/methods/rsh.cc +++ b/methods/rsh.cc @@ -90,7 +90,7 @@ bool RSHConn::Open() // RSHConn::Connect - Fire up rsh and connect /*{{{*/ // --------------------------------------------------------------------- /* */ -bool RSHConn::Connect(std::string Host, unsigned int Port, std::string User) +bool RSHConn::Connect(std::string const &Host, unsigned int Port, std::string const &User) { char *PortStr = NULL; if (Port != 0) @@ -169,7 +169,7 @@ bool RSHConn::Connect(std::string Host, unsigned int Port, std::string User) return true; } -bool RSHConn::Connect(std::string Host, std::string User) +bool RSHConn::Connect(std::string const &Host, std::string const &User) { return Connect(Host, 0, User); } |