remove unnecessary c_str()

This commit is contained in:
oltolm 2026-01-01 02:54:04 +01:00
parent 20b688dbac
commit 97dce3c802
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ void DisasmCtrl::DrawDisassemblyLine(wxDC& dc, const wxPoint& linePosition, MPTR
dc.SetTextForeground(hasPatch ? theme_patchedOpCode : theme_opCode);
std::string opName = ppcAssembler_getInstructionName(disasmInstr.ppcAsmCode);
std::transform(opName.begin(), opName.end(), opName.begin(), tolower);
dc.DrawText(wxString::Format("%-12s", opName), position);
dc.DrawText(wxString::Format("%-12s", opName.c_str()), position);
position.x += OFFSET_DISASSEMBLY_OPERAND;
bool isRLWINM = disasmInstr.ppcAsmCode == PPCASM_OP_RLWINM || disasmInstr.ppcAsmCode == PPCASM_OP_RLWINM_ ||

View File

@ -89,7 +89,7 @@ void ModuleWindow::OnGameLoaded()
{
wxListItem item;
item.SetId(i);
item.SetText(module->moduleName2.c_str());
item.SetText(module->moduleName2);
const auto index = m_modules->InsertItem(item);
m_modules->SetItem(index, ColumnAddress, wxString::Format("%08x", module->regionMappingBase_text.GetMPTR()));