Skip to content

Commit 4f9c3dd

Browse files
committed
[NXP][common] Replace Optional class with std::optional to fix BR build
Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com>
1 parent c07c467 commit 4f9c3dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/nxp/common/DnssdImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ CHIP_ERROR FromSrpCacheToMdnsData(const otSrpServerService * service, const otSr
440440
mdnsService.mInterface = ConnectivityManagerImpl().GetThreadInterface();
441441

442442
mdnsService.mAddressType = Inet::IPAddressType::kIPv6;
443-
mdnsService.mAddress = MakeOptional(ToIPAddress(*ip6AddrPtr));
443+
mdnsService.mAddress = std::optional(ToIPAddress(*ip6AddrPtr));
444444

445445
// Extract TXT record SRP service
446446
txtStringPtr = otSrpServerServiceGetTxtData(service, &txtDataLen);
@@ -547,7 +547,7 @@ CHIP_ERROR FromOtDnsResponseToMdnsData(otDnsServiceInfo & serviceInfo, const cha
547547
if (!otIp6IsAddressUnspecified(&serviceInfo.mHostAddress))
548548
{
549549
mdnsService.mAddressType = Inet::IPAddressType::kIPv6;
550-
mdnsService.mAddress = MakeOptional(ToIPAddress(serviceInfo.mHostAddress));
550+
mdnsService.mAddress = std::optional(ToIPAddress(serviceInfo.mHostAddress));
551551
}
552552

553553
// Check if TXT record was included in DNS response.

0 commit comments

Comments
 (0)