frontend/A32/types: Remove redundant std::string initializer
std::string initializes to empty by default. While we're at it, brace a lone unbraced if statement.
This commit is contained in:
parent
25b4e463d3
commit
b57ed8917a
1 changed files with 3 additions and 2 deletions
|
@ -52,12 +52,13 @@ const char* CoprocRegToString(CoprocReg reg) {
|
|||
}
|
||||
|
||||
std::string RegListToString(RegList reg_list) {
|
||||
std::string ret = "";
|
||||
std::string ret;
|
||||
bool first_reg = true;
|
||||
for (size_t i = 0; i < 16; i++) {
|
||||
if (Common::Bit(i, reg_list)) {
|
||||
if (!first_reg)
|
||||
if (!first_reg) {
|
||||
ret += ", ";
|
||||
}
|
||||
ret += RegToString(static_cast<Reg>(i));
|
||||
first_reg = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue