mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user