Skip to content

Commit dc70c1e

Browse files
committed
addrman: Use std::nullopt instead of {}
1 parent 59cc66a commit dc70c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addrman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class AddrMan
106106
* @param[in] in_new Select addresses only from one table (true = new, false = tried, nullopt = both)
107107
* @return Number of unique addresses that match specified options.
108108
*/
109-
size_t Size(std::optional<Network> net = {}, std::optional<bool> in_new = {}) const;
109+
size_t Size(std::optional<Network> net = std::nullopt, std::optional<bool> in_new = std::nullopt) const;
110110

111111
/**
112112
* Attempt to add one or more addresses to addrman's new table.

0 commit comments

Comments
 (0)