Use C++11 construct.

This commit is contained in:
Richard Kimberly Heck 2020-02-23 16:59:31 -05:00
parent 5873a382de
commit 34f9ea8275

View File

@ -596,7 +596,7 @@ Buffer::~Buffer()
Buffer * Buffer::cloneWithChildren() const
{
BufferMap bufmap;
cloned_buffers.push_back(CloneList_ptr(new CloneList));
cloned_buffers.emplace_back(new CloneList);
CloneList_ptr clones = cloned_buffers.back();
cloneWithChildren(bufmap, clones);
@ -660,7 +660,7 @@ void Buffer::cloneWithChildren(BufferMap & bufmap, CloneList_ptr clones) const
Buffer * Buffer::cloneBufferOnly() const {
cloned_buffers.push_back(CloneList_ptr(new CloneList));
cloned_buffers.emplace_back(new CloneList);
CloneList_ptr clones = cloned_buffers.back();
Buffer * buffer_clone = new Buffer(fileName().absFileName(), false, this);