review fixes

This commit is contained in:
ExMix 2015-04-14 15:58:56 +03:00 committed by r.kuznetsov
parent 88e362729d
commit da9d55a408
3 changed files with 4 additions and 2 deletions

View file

@ -121,7 +121,7 @@ void FrontendRenderer::AcceptMessage(dp::RefPointer<Message> message)
bucket.Destroy();
}
else
m_userMarkRenderGroups.push_back(new UserMarkRenderGroup(state, key, bucket.Move()));
m_userMarkRenderGroups.emplace_back(new UserMarkRenderGroup(state, key, bucket.Move()));
break;
}

View file

@ -87,6 +87,7 @@ void CacheUserPoints(UserMarksProvider const * provider,
buffer.reserve(vertexCount);
vector<UserPointMark const *> marks;
marks.reserve(markCount);
for (size_t i = 0; i < markCount; ++i)
marks.push_back(provider->GetUserPointMark(i));

View file

@ -45,7 +45,8 @@ void Bookmark::SetData(BookmarkData const & data)
}
BookmarkData const & Bookmark::GetData() const
{ return m_data;
{
return m_data;
}
dp::Anchor Bookmark::GetAnchor() const