Merge "audio VTS: Update 7.0/PolicyConfig"
This commit is contained in:
commit
9470948681
1 changed files with 2 additions and 7 deletions
|
@ -41,15 +41,10 @@ using Module = Modules::Module;
|
|||
|
||||
class PolicyConfig {
|
||||
public:
|
||||
explicit PolicyConfig(const std::string& configFileName)
|
||||
: mConfigFileName{configFileName},
|
||||
mFilePath{findExistingConfigurationFile(mConfigFileName)},
|
||||
mConfig{xsd::read(mFilePath.c_str())} {
|
||||
init();
|
||||
}
|
||||
PolicyConfig(const std::string& configPath, const std::string& configFileName)
|
||||
: mConfigFileName{configFileName},
|
||||
mFilePath{configPath + "/" + mConfigFileName},
|
||||
mFilePath{configPath.empty() ? findExistingConfigurationFile(mConfigFileName)
|
||||
: configPath + "/" + mConfigFileName},
|
||||
mConfig{xsd::read(mFilePath.c_str())} {
|
||||
init();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue