Pass std::strings by ref

pull/3530/head
Isaac Connor 2022-07-14 10:53:47 -04:00
parent b29e61b30e
commit fd566b2212
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ int RemoteCameraNVSocket::Disconnect() {
return( 0 );
}
int RemoteCameraNVSocket::SendRequest( std::string request ) {
int RemoteCameraNVSocket::SendRequest(const std::string &request) {
//Debug( 4, "Sending request: %s", request.c_str() );
if ( write( sd, request.data(), request.length() ) < 0 ) {
Error( "Can't write: %s", strerror(errno) );

View File

@ -51,7 +51,7 @@ public:
void Terminate() override { Disconnect(); }
int Connect() override;
int Disconnect() override;
int SendRequest(std::string);
int SendRequest(const std::string &);
int GetResponse();
int PrimeCapture() override;
int Capture(std::shared_ptr<ZMPacket> &p) override;