commit | c49cb321b13cafdfe4336cb00aa7378bae2a0a87 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 17:15:46 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 17:15:46 2013 -0700 |
tree | b60aa72834642d4c52670712d22a7768422163b1 | |
parent | 11b1cb6032a702e8f24e802821f1899c1473e31f [diff] |
In getTransport, need to return a const shared_ptr
diff --git a/ndn-cpp/face.hpp b/ndn-cpp/face.hpp index c646dab..372c908 100644 --- a/ndn-cpp/face.hpp +++ b/ndn-cpp/face.hpp
@@ -54,7 +54,7 @@ unsigned short getPort() const { return port_; } - ptr_lib::shared_ptr<Transport> &getTransport() { return transport_; } + const ptr_lib::shared_ptr<Transport> &getTransport() { return transport_; } virtual void onReceivedElement(unsigned char *element, unsigned int elementLength);