mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
Formatting cleanup for VideoCommon.
Block braces on new lines. Also killed off trailing whitespace and dangling elses. Spaced some things out to make them more readable (only in places where it looked like a bit of a clusterfuck).
This commit is contained in:
parent
c118c71eac
commit
8da425b008
35 changed files with 559 additions and 258 deletions
|
@ -57,11 +57,14 @@ void Shutdown()
|
|||
g_VertexLoaderMap.clear();
|
||||
}
|
||||
|
||||
namespace {
|
||||
struct entry {
|
||||
namespace
|
||||
{
|
||||
struct entry
|
||||
{
|
||||
std::string text;
|
||||
u64 num_verts;
|
||||
bool operator < (const entry &other) const {
|
||||
bool operator < (const entry &other) const
|
||||
{
|
||||
return num_verts > other.num_verts;
|
||||
}
|
||||
};
|
||||
|
@ -82,7 +85,8 @@ void AppendListToString(std::string *dest)
|
|||
}
|
||||
sort(entries.begin(), entries.end());
|
||||
dest->reserve(dest->size() + total_size);
|
||||
for (std::vector<entry>::const_iterator iter = entries.begin(); iter != entries.end(); ++iter) {
|
||||
for (std::vector<entry>::const_iterator iter = entries.begin(); iter != entries.end(); ++iter)
|
||||
{
|
||||
dest->append(iter->text);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue