CodeWidget: Remove unnecessary c_str() calls

This commit is contained in:
Lioncash 2018-03-27 22:26:57 -04:00
parent ac97f0463f
commit b637163704
1 changed files with 3 additions and 3 deletions

View File

@ -310,8 +310,8 @@ void CodeWidget::UpdateFunctionCalls(Symbol* symbol)
if (call_symbol) if (call_symbol)
{ {
auto* item = new QListWidgetItem(QString::fromStdString( auto* item = new QListWidgetItem(
StringFromFormat("> %s (%08x)", call_symbol->name.c_str(), addr).c_str())); QString::fromStdString(StringFromFormat("> %s (%08x)", call_symbol->name.c_str(), addr)));
item->setData(Qt::UserRole, addr); item->setData(Qt::UserRole, addr);
m_function_calls_list->addItem(item); m_function_calls_list->addItem(item);
@ -331,7 +331,7 @@ void CodeWidget::UpdateFunctionCallers(Symbol* symbol)
if (caller_symbol) if (caller_symbol)
{ {
auto* item = new QListWidgetItem(QString::fromStdString( auto* item = new QListWidgetItem(QString::fromStdString(
StringFromFormat("< %s (%08x)", caller_symbol->name.c_str(), addr).c_str())); StringFromFormat("< %s (%08x)", caller_symbol->name.c_str(), addr)));
item->setData(Qt::UserRole, addr); item->setData(Qt::UserRole, addr);
m_function_callers_list->addItem(item); m_function_callers_list->addItem(item);