init: use FQName parse
FQName::FQName(string) could leave the FQName in an invalid state, and so this constructor is being removed and the mValid member is being removed. Bug: 73774955 Test: boots + interface_start control messages received by init Change-Id: I58d4a089c0a0f1c2cc5129c5e87321e7f6663b72
This commit is contained in:
parent
1d5b102671
commit
422367b97f
|
@ -446,8 +446,8 @@ Result<Success> Service::ParseInterface(const std::vector<std::string>& args) {
|
|||
const std::string& interface_name = args[1];
|
||||
const std::string& instance_name = args[2];
|
||||
|
||||
const FQName fq_name = FQName(interface_name);
|
||||
if (!fq_name.isValid()) {
|
||||
FQName fq_name;
|
||||
if (!FQName::parse(interface_name, &fq_name)) {
|
||||
return Error() << "Invalid fully-qualified name for interface '" << interface_name << "'";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue