Skip to content

Commit 949856d

Browse files
author
Kimmo Vaisanen
committed
Replace unique_ptr::reset() call with "= nullptr"
This is a workaround for IAR library bug.
1 parent 9913f25 commit 949856d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/netsocket/SocketAddress.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SocketAddress::SocketAddress(const SocketAddress &addr) : _addr(addr._addr), _po
4444

4545
bool SocketAddress::set_ip_address(const char *addr)
4646
{
47-
_ip_address.reset();
47+
_ip_address = nullptr;
4848

4949
if (addr && stoip4(addr, strlen(addr), _addr.bytes)) {
5050
_addr.version = NSAPI_IPv4;
@@ -73,7 +73,7 @@ void SocketAddress::set_ip_bytes(const void *bytes, nsapi_version_t version)
7373

7474
void SocketAddress::set_addr(const nsapi_addr_t &addr)
7575
{
76-
_ip_address.reset();
76+
_ip_address = nullptr;
7777
_addr = addr;
7878
}
7979

0 commit comments

Comments
 (0)