Merge "Don't depend on String8 cast to C string [drm]" into main

This commit is contained in:
Tomasz Wasilczyk
2023-10-05 18:53:20 +00:00
committed by Gerrit Code Review
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);
}