Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a834a5d9 authored by Yifan Hong's avatar Yifan Hong
Browse files

Use ManifestHal constructor.

ManifestHal has private fields and cannot use
aggregate constructor.
Test: builds
Bug: 73556059

Change-Id: Ia2fa0a7011794f61c28b5553e132baf4fcb37cdc
Merged-In: Ia2fa0a7011794f61c28b5553e132baf4fcb37cdc
parent 0edb3ca0
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -394,11 +394,11 @@ void ListCommand::dumpVintf(const NullableOStream<std::ostream>& out) const {
                interfaces[interfaceName].instances.insert(instanceName);
            }
            if (!manifest.add(vintf::ManifestHal{
                    .format = vintf::HalFormat::HIDL,
                    .name = fqName.package(),
                    .versions = {version},
                    .transportArch = {transport, arch},
                    .interfaces = interfaces})) {
                    vintf::HalFormat::HIDL,
                    std::string{fqName.package()},
                    {version},
                    {transport, arch},
                    std::move(interfaces)})) {
                err() << "Warning: cannot add hal '" << fqInstanceName << "'" << std::endl;
            }
        }