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

Commit 2d5ddd18 authored by Ben Gruver's avatar Ben Gruver Committed by Android (Google) Code Review
Browse files

Merge "Fix up getAttributeFlags() function"

parents 78c914f3 59eb5fd5
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -2304,10 +2304,8 @@ bool ResourceTable::getAttributeFlags(

        const char16_t* end = name + nameLen;
        const char16_t* pos = name;
        bool failed = false;
        while (pos < end && !failed) {
        while (pos < end) {
            const char16_t* start = pos;
            end++;
            while (pos < end && *pos != '|') {
                pos++;
            }
@@ -2333,10 +2331,8 @@ bool ResourceTable::getAttributeFlags(
                // Didn't find this flag identifier.
                return false;
            }
            if (pos < end) {
            pos++;
        }
        }

        return true;
    }