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

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

MediaMetrics: Avoid creating temporary string am: 9620663e am: a27ecd6a

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

Change-Id: I6dcdc19632d8452ed85cb7cd331719a588c646c0
parents e439745c a27ecd6a
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;