mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00: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:
parent
8033a72f0b
commit
9859533ab4
4 changed files with 22 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue