summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-02-13 14:57:59 -0500
committer AJR <ajrhacker@users.noreply.github.com>2022-02-13 14:57:59 -0500
commit4f6308bc7ceec7a0f3e21d8d616268b401bd7ec3 (patch)
treed0389bb86cc5bd0c96825f6df5fe5a8908bfa991 /src/osd/modules/debugger
parentbe4008cbb2a95115e2d4de19a2bac3f6b87c5703 (diff)
Delete some unnecessary c_str() calls
Diffstat (limited to 'src/osd/modules/debugger')
-rw-r--r--src/osd/modules/debugger/qt/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/modules/debugger/qt/mainwindow.cpp b/src/osd/modules/debugger/qt/mainwindow.cpp
index b0043c06dee..afea2e07919 100644
--- a/src/osd/modules/debugger/qt/mainwindow.cpp
+++ b/src/osd/modules/debugger/qt/mainwindow.cpp
@@ -220,7 +220,7 @@ void MainWindow::toggleBreakpointAtCursor(bool changedTo)
command = string_format("bpset 0x%X", address);
else
command = string_format("bpclear 0x%X", bp->index());
- m_machine.debugger().console().execute_command(command.c_str(), true);
+ m_machine.debugger().console().execute_command(command, true);
}
refreshAll();
@@ -242,7 +242,7 @@ void MainWindow::enableBreakpointAtCursor(bool changedTo)
{
int32_t const bpindex = bp->index();
std::string command = string_format(bp->enabled() ? "bpdisable 0x%X" : "bpenable 0x%X", bpindex);
- m_machine.debugger().console().execute_command(command.c_str(), true);
+ m_machine.debugger().console().execute_command(command, true);
}
}
@@ -257,7 +257,7 @@ void MainWindow::runToCursor(bool changedTo)
{
offs_t address = downcast<debug_view_disasm*>(dasmView)->selected_address();
std::string command = string_format("go 0x%X", address);
- m_machine.debugger().console().execute_command(command.c_str(), true);
+ m_machine.debugger().console().execute_command(command, true);
}
}