src: Removing unnecessary use of cref() in concert with make_shared
This commit also replaces all usages of shared_ptr<T>(new T) with
make_shared<T> in Face class implementation.
Change-Id: I44971c44eb7f2c25ecfe00e185309973c9cbd246
Refs: #1592
diff --git a/src/transport/transport.hpp b/src/transport/transport.hpp
index 3ed386c..8291356 100644
--- a/src/transport/transport.hpp
+++ b/src/transport/transport.hpp
@@ -28,8 +28,8 @@
inline Error(const std::string& msg);
};
- typedef ptr_lib::function<void (const Block& wire)> ReceiveCallback;
- typedef ptr_lib::function<void ()> ErrorCallback;
+ typedef function<void (const Block& wire)> ReceiveCallback;
+ typedef function<void ()> ErrorCallback;
inline
Transport();
diff --git a/src/transport/unix-transport.hpp b/src/transport/unix-transport.hpp
index 6cff8dc..5fe14ee 100644
--- a/src/transport/unix-transport.hpp
+++ b/src/transport/unix-transport.hpp
@@ -74,7 +74,7 @@
typedef StreamTransportImpl<UnixTransport, boost::asio::local::stream_protocol> Impl;
friend class StreamTransportImpl<UnixTransport, boost::asio::local::stream_protocol>;
- ptr_lib::shared_ptr< Impl > m_impl;
+ shared_ptr< Impl > m_impl;
};
}