Merge "Don't depend on String8 cast to C string [drm]" into main am: 15272cf28e am: 19f00f8964 am: da306554c5 am: cc11251fe4

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2748300

Change-Id: I7110e6d91f76d31aca7dd7acafe8c11eb335a0b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tomasz Wasilczyk 2023-10-05 21:13:47 +00:00 committed by Automerger Merge Worker
commit aab4d6c216
2 changed files with 3 additions and 3 deletions

View file

@ -133,8 +133,8 @@ namespace implementation {
Vector<KeyValue> infoMapVec;
for (size_t i = 0; i < legacyInfoMap.size(); i++) {
KeyValue keyValuePair;
keyValuePair.key = String8(legacyInfoMap.keyAt(i));
keyValuePair.value = String8(legacyInfoMap.valueAt(i));
keyValuePair.key = legacyInfoMap.keyAt(i);
keyValuePair.value = legacyInfoMap.valueAt(i);
infoMapVec.push_back(keyValuePair);
}
_hidl_cb(toStatus(status), toHidlVec(infoMapVec));

View file

@ -50,7 +50,7 @@ class PluginLoader {
String8 file(pEntry->d_name);
if (base::EndsWith(file.c_str(), ".so")) {
String8 path = pluginDir + "/" + pEntry->d_name;
T *plugin = loadOne(path, entry);
T* plugin = loadOne(path.c_str(), entry);
if (plugin) {
factories.push(plugin);
}