forked from organicmaps/organicmaps-tmp
Fixed compilation warning -Wpessimizing-move.
This commit is contained in:
parent
068a1357e6
commit
0652ac822e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue