mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
UI: use std::string
This commit is contained in:
parent
b098e6591a
commit
70a27bb5a1
@ -249,9 +249,8 @@ void DisasmCtrl::DrawDisassemblyLine(wxDC& dc, const wxPoint& linePosition, MPTR
|
||||
|
||||
sint32 start_width = position.x;
|
||||
dc.SetTextForeground(hasPatch ? theme_patchedOpCode : theme_opCode);
|
||||
char opName[32];
|
||||
strcpy(opName, ppcAssembler_getInstructionName(disasmInstr.ppcAsmCode));
|
||||
std::transform(opName, opName + sizeof(opName), opName, tolower);
|
||||
std::string opName = ppcAssembler_getInstructionName(disasmInstr.ppcAsmCode);
|
||||
std::transform(opName.begin(), opName.end(), opName.begin(), tolower);
|
||||
dc.DrawText(wxString::Format("%-12s", opName), position);
|
||||
position.x += OFFSET_DISASSEMBLY_OPERAND;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user