diff options
| author | Filip Gawin <filip.gawin@zoho.com> | 2019-03-02 19:42:25 +0100 |
|---|---|---|
| committer | Filip Gawin <filip.gawin@zoho.com> | 2019-04-30 01:22:24 +0200 |
| commit | c110ffcdaa8b928a984a89cebacd03f5caaace06 (patch) | |
| tree | d44f19a905630c3c2e25aa4b04b506e929c87305 /Source/Core/UICommon/Disassembler.cpp | |
| parent | 8e1fb126d711f7dcecbf16725d35b06cdc8f18b9 (diff) | |
Remove redundant initialization
Diffstat (limited to 'Source/Core/UICommon/Disassembler.cpp')
| -rw-r--r-- | Source/Core/UICommon/Disassembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/UICommon/Disassembler.cpp b/Source/Core/UICommon/Disassembler.cpp index d8f74b0cf3..56898d90e4 100644 --- a/Source/Core/UICommon/Disassembler.cpp +++ b/Source/Core/UICommon/Disassembler.cpp @@ -83,7 +83,7 @@ std::string HostDisassemblerLLVM::DisassembleHostBlock(const u8* code_start, con { // If we are on an architecture that has a fixed instruction size // We can continue onward past this bad instruction. - std::string inst_str = ""; + std::string inst_str; for (int i = 0; i < m_instruction_size; ++i) inst_str += StringFromFormat("%02x", disasmPtr[i]); @@ -94,7 +94,7 @@ std::string HostDisassemblerLLVM::DisassembleHostBlock(const u8* code_start, con { // We can't continue if we are on an architecture that has flexible instruction sizes // Dump the rest of the block instead - std::string code_block = ""; + std::string code_block; for (int i = 0; (disasmPtr + i) < end; ++i) code_block += StringFromFormat("%02x", disasmPtr[i]); |
