Skip to content
Snippets Groups Projects
Commit acd1363f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9910: SipTransport: pass parameters by const reference

parent 5b7fad49
No related branches found
No related tags found
No related merge requests found
......@@ -453,13 +453,14 @@ SipTransport::createUdpTransport(const std::string &interface, unsigned int port
}
pjsip_transport *
SipTransport::createUdpTransport(const std::string &interface, unsigned int port, std::string& publicAddr, unsigned int publicPort)
SipTransport::createUdpTransport(const std::string &interface, unsigned int port, const std::string &publicAddr, unsigned int publicPort)
{
// init socket to bind this transport to
pj_uint16_t listeningPort = (pj_uint16_t) port;
pjsip_transport *transport = NULL;
DEBUG("SipTransport: Update UDP transport on %s:%d with public addr %s:%d", interface.c_str(), port, publicAddr.c_str(), publicPort);
DEBUG("SipTransport: Update UDP transport on %s:%d with public addr %s:%d",
interface.c_str(), port, publicAddr.c_str(), publicPort);
// determine the ip address for this transport
std::string listeningAddress;
......
......@@ -140,7 +140,7 @@ class SipTransport {
* @param The public address for this transport
* @param The public port for this transport
*/
pjsip_transport *createUdpTransport(const std::string &interface, unsigned int port, std::string& publicAddr, unsigned int publicPort);
pjsip_transport *createUdpTransport(const std::string &interface, unsigned int port, const std::string &publicAddr, unsigned int publicPort);
private:
NON_COPYABLE(SipTransport);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment