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

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

Change-Id: Id39357c52fa06672e16d1fd437f2a09567375ef1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tomasz Wasilczyk 2023-10-05 19:55:03 +00:00 committed by Automerger Merge Worker
commit da306554c5
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);
}