mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
1c862def6a
commit
a248ee7d41
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user