diff options
author | vng <viktor.govako@gmail.com> | 2015-12-04 20:30:43 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:02:58 +0300 |
commit | bb1ad911558044ecab8fffc0ac86e320af7e6cae (patch) | |
tree | 44e2f2aed3e958831551ccc6fe596bbbaf02a759 /coding/file_container.cpp | |
parent | 936b9cd747c9931956f677b13caaaaf148026e8b (diff) |
Move semantics for FileWriter.
Diffstat (limited to 'coding/file_container.cpp')
-rw-r--r-- | coding/file_container.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coding/file_container.cpp b/coding/file_container.cpp index 4c16a05d56..fab8710331 100644 --- a/coding/file_container.cpp +++ b/coding/file_container.cpp @@ -398,7 +398,7 @@ FileWriter FilesContainerW::GetWriter(Tag const & tag) writer.WritePaddingByPos(kSectionAlignment); m_info.push_back(Info(tag, writer.Pos())); ASSERT(m_info.back().m_offset % kSectionAlignment == 0, ()); - return writer; + return move(writer); } else { @@ -407,7 +407,7 @@ FileWriter FilesContainerW::GetWriter(Tag const & tag) writer.WritePaddingByPos(kSectionAlignment); m_info.push_back(Info(tag, writer.Pos())); ASSERT(m_info.back().m_offset % kSectionAlignment == 0, ()); - return writer; + return move(writer); } } |