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/encoding/buffer.hpp b/src/encoding/buffer.hpp
index 3130a73..d4b14c0 100644
--- a/src/encoding/buffer.hpp
+++ b/src/encoding/buffer.hpp
@@ -175,7 +175,7 @@
* OBufferStream obuf;
* obuf.put(0);
* obuf.write(another_buffer, another_buffer_size);
- * ptr_lib::shared_ptr<Buffer> buf = obuf.get();
+ * shared_ptr<Buffer> buf = obuf.get();
* @endcode
*/
struct OBufferStream : public boost::iostreams::stream<iostreams::buffer_append_device>
@@ -184,7 +184,7 @@
* Default constructor
*/
OBufferStream()
- : m_buffer(ptr_lib::make_shared<Buffer>())
+ : m_buffer(make_shared<Buffer>())
, m_device(*m_buffer)
{
open(m_device);
@@ -193,7 +193,7 @@
/**
* Flush written data to the stream and return shared pointer to the underlying buffer
*/
- ptr_lib::shared_ptr<Buffer>
+ shared_ptr<Buffer>
buf()
{
flush();