changing signature from std::string to const std::string& for client receiver ip functions

This commit is contained in:
2019-01-15 13:14:43 +01:00
parent f2669adda7
commit a9fb476543
4 changed files with 6 additions and 6 deletions

View File

@ -1766,7 +1766,7 @@ int multiSlsDetector::getReceiverStreamingPort(int detPos) {
return sls::minusOneIfDifferent(r);
}
void multiSlsDetector::setClientDataStreamingInIP(std::string ip,
void multiSlsDetector::setClientDataStreamingInIP(const std::string& ip,
int detPos) {
if (ip.length()) {
int prev_streaming = enableDataStreamingToClient(-1);
@ -1800,7 +1800,7 @@ std::string multiSlsDetector::getClientStreamingIP(int detPos) {
return sls::concatenateIfDifferent(r);
}
void multiSlsDetector::setReceiverDataStreamingOutIP(std::string ip,
void multiSlsDetector::setReceiverDataStreamingOutIP(const std::string& ip,
int detPos) {
if (ip.length()) {
int prev_streaming = enableDataStreamingFromReceiver(-1, detPos);

View File

@ -998,7 +998,7 @@ class multiSlsDetector : public virtual slsDetectorDefs,
* By default, it is the IP of receiver hostname
* @param detPos -1 for all detectors in list or specific detector position
*/
void setClientDataStreamingInIP(std::string ip = "",
void setClientDataStreamingInIP(const std::string& ip = "",
int detPos = -1);
/**
@ -1016,7 +1016,7 @@ class multiSlsDetector : public virtual slsDetectorDefs,
* By default, it is the IP of receiver hostname
* @param detPos -1 for all detectors in list or specific detector position
*/
void setReceiverDataStreamingOutIP(std::string ip = "",
void setReceiverDataStreamingOutIP(const std::string& ip = "",
int detPos = -1);
/**