diff options
author | 2013-01-01 00:37:50 +0800 | |
---|---|---|
committer | 2013-01-01 00:37:50 +0800 | |
commit | 8b10b0a614948eeb3c8443a9be37400d7f733287 (patch) | |
tree | e0201256adf92925b2f782b837cb14da40dbca49 /io.cpp | |
parent | a9ada13a23a9f13af2520fbb2b49b59ec5ead085 (diff) |
Convert all io_data_t copying to shared_ptr copying.
Copy constructor of io_data_t is removed.
Diffstat (limited to 'io.cpp')
-rw-r--r-- | io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -172,7 +172,7 @@ io_chain_t io_chain_t::duplicate() const result.reserve(this->size()); for (io_chain_t::const_iterator iter = this->begin(); iter != this->end(); iter++) { - result.push_back(shared_ptr<io_data_t>(new io_data_t(**iter))); + result.push_back(*iter); } return result; } @@ -183,7 +183,7 @@ void io_chain_t::duplicate_prepend(const io_chain_t &src) this->insert(this->begin(), src.size(), shared_ptr<io_data_t>()); for (size_t idx = 0; idx < src.size(); idx++) { - this->at(idx).reset(new io_data_t(*src.at(idx))); + this->at(idx) = src.at(idx); } } |