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

Commit 6507e453 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update usage of PropertyMap::load"

parents 1f484774 2da17761
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
               libs/input/
               services/core/jni/
               services/incremental/
               tools/

[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
+5 −5
Original line number Diff line number Diff line
@@ -115,13 +115,13 @@ static bool validateFile(const char* filename) {
    }

    case FILETYPE_INPUTDEVICECONFIGURATION: {
        PropertyMap* map;
        status_t status = PropertyMap::load(String8(filename), &map);
        if (status) {
            error("Error %d parsing input device configuration file.\n\n", status);
        android::base::Result<std::unique_ptr<PropertyMap>> propertyMap =
                PropertyMap::load(String8(filename));
        if (!propertyMap.ok()) {
            error("Error %d parsing input device configuration file.\n\n",
                  propertyMap.error().code());
            return false;
        }
        delete map;
        break;
    }