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 @@ -694,7 +694,7 @@ bool DAP::HandleObject(const llvm::json::Object &object) {
694
694
const auto packet_type = GetString (object, " type" );
695
695
if (packet_type == " request" ) {
696
696
const auto command = GetString (object, " command" );
697
- auto handler_pos = request_handlers.find (std::string ( command) );
697
+ auto handler_pos = request_handlers.find (command);
698
698
if (handler_pos != request_handlers.end ()) {
699
699
handler_pos->second (object);
700
700
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