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

Commit b6907f07 authored by Scott Randolph's avatar Scott Randolph Committed by android-build-merger
Browse files

Merge "Use explicit .c_str() for hidl_string" into oc-dev am: 0576064b

am: b7190e18

Change-Id: Ic99230dcdbfd89dfdfb2304ac8e8062b86e92b8b
parents 099d350e b7190e18
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -929,15 +929,15 @@ jobject constructJContextHubInfo(JNIEnv *env, const ContextHub &hub) {
                                  db.jniInfo.contextHubInfoCtor);
    env->CallVoidMethod(jHub, db.jniInfo.contextHubInfoSetId, hub.hubId);

    jstrBuf = env->NewStringUTF(hub.name);
    jstrBuf = env->NewStringUTF(hub.name.c_str());
    env->CallVoidMethod(jHub, db.jniInfo.contextHubInfoSetName, jstrBuf);
    env->DeleteLocalRef(jstrBuf);

    jstrBuf = env->NewStringUTF(hub.vendor);
    jstrBuf = env->NewStringUTF(hub.vendor.c_str());
    env->CallVoidMethod(jHub, db.jniInfo.contextHubInfoSetVendor, jstrBuf);
    env->DeleteLocalRef(jstrBuf);

    jstrBuf = env->NewStringUTF(hub.toolchain);
    jstrBuf = env->NewStringUTF(hub.toolchain.c_str());
    env->CallVoidMethod(jHub, db.jniInfo.contextHubInfoSetToolchain, jstrBuf);
    env->DeleteLocalRef(jstrBuf);