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

Commit a27ecd6a authored by Greg Kaiser's avatar Greg Kaiser Committed by Automerger Merge Worker
Browse files

MediaMetrics: Avoid creating temporary string am: 9620663e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/16358181

Change-Id: I459150a935435d5a043c081b7d3429ddc3410490
parents a6f3580e 9620663e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ static const std::unordered_map<std::string, int32_t>& getErrorStringMap() {

status_t errorStringToStatus(const char *error) {
    const auto& map = getErrorStringMap();
    if (error == nullptr || error == "") return NO_ERROR;
    if (error == nullptr || error[0] == '\0') return NO_ERROR;
    auto it = map.find(error);
    if (it != map.end()) {
        return it->second;