Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e19fb26 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

The libc++ upgrade means we can use contains in minadb now.

Change-Id: I30223294e2511034d498f003865dd3e14747124b
parent ed71bac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ static bool HandleMessageFromMinadbd(int socket_fd,
  if (command_type == MinadbdCommand::kError) {
    return false;
  }
  if (command_map.find(command_type) == command_map.end()) {
  if (!command_map.contains(command_type)) {
    LOG(ERROR) << "Unsupported command: "
               << android::base::get_unaligned<unsigned int>(
                      message.substr(strlen(kMinadbdCommandPrefix)).c_str());
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ static void RescueGetpropHostService(unique_fd sfd, const std::string& prop) {
      }
      result += "[" + key + "]: [" + value + "]\n";
    }
  } else if (kGetpropAllowedProps.find(prop) != kGetpropAllowedProps.end()) {
  } else if (kGetpropAllowedProps.contains(prop)) {
    result = query_prop(prop) + "\n";
  }
  if (result.empty()) {