Fix CppCheck in rsservicecontrol.h

/libretroshare/src/retroshare/rsservicecontrol.h:46: warning:
Cppcheck(passedByValue): Function parameter 'service_name' should be
passed by reference.
This commit is contained in:
Phenom 2017-07-27 16:54:56 +02:00 committed by csoler
parent 1c862def6a
commit a248ee7d41
2 changed files with 2 additions and 2 deletions

View File

@ -1367,7 +1367,7 @@ void RsServicePermissions::resetPermission(const RsPeerId& peerId)
RsServiceInfo::RsServiceInfo(
const uint16_t service_type,
const std::string service_name,
const std::string& service_name,
const uint16_t version_major,
const uint16_t version_minor,
const uint16_t min_version_major,

View File

@ -43,7 +43,7 @@ class RsServiceInfo
RsServiceInfo();
RsServiceInfo(
const uint16_t service_type,
const std::string service_name,
const std::string& service_name,
const uint16_t version_major,
const uint16_t version_minor,
const uint16_t min_version_major,