summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-03-26 22:17:37 -0400
committerLioncash <mathew1800@gmail.com>2017-03-26 23:49:59 -0400
commit9859533ab461c6d509337d8b9013a7ba62dd78ae (patch)
tree1c4d3e91fd0e04dc9761063339ba387135d25478 /Source/Core/VideoCommon/VertexLoaderManager.cpp
parent8033a72f0bbea732b9a1bf5d6110bde6632f49a6 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index c7a2f46bab..f0d8decb3d 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -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);