Fixed compilation warning -Wpessimizing-move.

This commit is contained in:
Alex Zolotarev 2016-03-23 00:57:42 +03:00 committed by Sergey Yershov
parent 068a1357e6
commit 0652ac822e

View file

@ -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 move(writer);
return 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 move(writer);
return writer;
}
}