VertexLoaderBase: Return debug strings by value

An out parameter for this sort of thing is a C++03 hold-over. This also
renames AppendToString to ToString.
This commit is contained in:
Lioncash
2017-03-26 22:17:37 -04:00
parent 8033a72f0b
commit 9859533ab4
4 changed files with 22 additions and 22 deletions

View File

@ -106,11 +106,11 @@ void AppendListToString(std::string* dest)
size_t total_size = 0;
for (const auto& map_entry : s_vertex_loader_map)
{
entry e;
map_entry.second->AppendToString(&e.text);
e.num_verts = map_entry.second->m_numLoadedVertices;
entries.push_back(e);
entry e = {map_entry.second->ToString(),
static_cast<u64>(map_entry.second->m_numLoadedVertices)};
total_size += e.text.size() + 1;
entries.push_back(std::move(e));
}
sort(entries.begin(), entries.end());
dest->reserve(dest->size() + total_size);