mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "error: no matching constructor for initialization of 'std::ifstream'" into main
This commit is contained in:
@@ -48,7 +48,8 @@ IvnAndroidDeviceService::IvnAndroidDeviceService(std::string_view configPath) {
|
||||
}
|
||||
|
||||
bool IvnAndroidDeviceService::init() {
|
||||
std::ifstream configStream(mConfigPath);
|
||||
std::string configPathStr(mConfigPath);
|
||||
std::ifstream configStream(configPathStr);
|
||||
if (!configStream) {
|
||||
LOG(ERROR) << "couldn't open " << mConfigPath << " for parsing.";
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user