Skip to content

Commit a22f2e9

Browse files
committed
One more const reference passing to try to reduce code size
1 parent ee2f9c8 commit a22f2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/dnssd/Discovery_ImplPlatform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ CHIP_ERROR AddPtrRecord(DiscoveryFilterType type, const char ** entries, size_t
115115

116116
template <class T>
117117
CHIP_ERROR AddPtrRecord(DiscoveryFilterType type, const char ** entries, size_t & entriesCount, char * buffer, size_t bufferLen,
118-
std::optional<T> value)
118+
const std::optional<T> &value)
119119
{
120120
VerifyOrReturnError(value.has_value(), CHIP_NO_ERROR);
121121
return AddPtrRecord(type, entries, entriesCount, buffer, bufferLen, *value);

0 commit comments

Comments
 (0)