summaryrefslogtreecommitdiffstats
path: root/include/raul/Socket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/raul/Socket.hpp')
-rw-r--r--include/raul/Socket.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/raul/Socket.hpp b/include/raul/Socket.hpp
index bd8ea35..e62ffb8 100644
--- a/include/raul/Socket.hpp
+++ b/include/raul/Socket.hpp
@@ -76,9 +76,9 @@ public:
std::shared_ptr<Socket> accept();
/// Return the file descriptor for the socket
- int fd() const { return _sock; }
+ [[nodiscard]] int fd() const { return _sock; }
- const std::string& uri() const { return _uri; }
+ [[nodiscard]] const std::string& uri() const { return _uri; }
/// Close the socket
void close();