From 58b43468951fc7497be1c98535e19657ee2ac51f Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Fri, 7 Oct 2022 13:04:47 +0200 Subject: [PATCH] Add '[[nodiscard]]' to 'IpAddress::resolve' --- include/SFML/Network/IpAddress.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SFML/Network/IpAddress.hpp b/include/SFML/Network/IpAddress.hpp index 385174551..a8a9203ca 100644 --- a/include/SFML/Network/IpAddress.hpp +++ b/include/SFML/Network/IpAddress.hpp @@ -56,7 +56,7 @@ public: /// \param address IP address or network name /// //////////////////////////////////////////////////////////// - static std::optional resolve(std::string_view address); + [[nodiscard]] static std::optional resolve(std::string_view address); //////////////////////////////////////////////////////////// /// \brief Construct the address from 4 bytes