File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -692,7 +692,7 @@ bool DAP::HandleObject(const llvm::json::Object &object) {
692
692
const auto packet_type = GetString (object, " type" );
693
693
if (packet_type == " request" ) {
694
694
const auto command = GetString (object, " command" );
695
- auto handler_pos = request_handlers.find (std::string ( command) );
695
+ auto handler_pos = request_handlers.find (command);
696
696
if (handler_pos != request_handlers.end ()) {
697
697
handler_pos->second (object);
698
698
return true ; // Success
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ struct DAP {
171
171
// the old process here so we can detect this case and keep running.
172
172
lldb::pid_t restarting_process_id;
173
173
bool configuration_done_sent;
174
- std::map<std::string, RequestCallback> request_handlers;
174
+ std::map<std::string, RequestCallback, std::less<> > request_handlers;
175
175
bool waiting_for_run_in_terminal;
176
176
ProgressEventReporter progress_event_reporter;
177
177
// Keep track of the last stop thread index IDs as threads won't go away
You can’t perform that action at this time.
0 commit comments