Use String8/16 c_str [drm]

Bug: 295394788
Test: make checkbuild
Change-Id: I8446de3a553a3ddce2da5c4551127039638e0a98
This commit is contained in:
Tomasz Wasilczyk
2023-08-23 18:50:11 +00:00
parent 7f2619ddff
commit 80116affcd
3 changed files with 5 additions and 6 deletions

View File

@@ -98,8 +98,7 @@ namespace implementation {
break;
}
}
_hidl_cb(toStatus(status), toHidlVec(legacyRequest), requestType,
defaultUrl.string());
_hidl_cb(toStatus(status), toHidlVec(legacyRequest), requestType, defaultUrl.c_str());
return Void();
}
@@ -219,7 +218,7 @@ namespace implementation {
String8 legacyValue;
status_t status = mLegacyPlugin->getPropertyString(
String8(propertyName.c_str()), legacyValue);
_hidl_cb(toStatus(status), legacyValue.string());
_hidl_cb(toStatus(status), legacyValue.c_str());
return Void();
}

View File

@@ -26,7 +26,7 @@ namespace V1_0 {
namespace helper {
SharedLibrary::SharedLibrary(const String8& path) {
mLibHandle = dlopen(path.string(), RTLD_NOW);
mLibHandle = dlopen(path.c_str(), RTLD_NOW);
}
SharedLibrary::~SharedLibrary() {

View File

@@ -39,9 +39,9 @@ class PluginLoader {
*/
String8 pluginDir(dir);
DIR* pDir = opendir(pluginDir.string());
DIR* pDir = opendir(pluginDir.c_str());
if (pDir == NULL) {
ALOGE("Failed to find plugin directory %s", pluginDir.string());
ALOGE("Failed to find plugin directory %s", pluginDir.c_str());
} else {
struct dirent* pEntry;
while ((pEntry = readdir(pDir))) {