summaryrefslogtreecommitdiffstats
path: root/include/raul/Socket.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-29 09:45:46 -0400
committerDavid Robillard <d@drobilla.net>2022-07-20 16:24:23 -0400
commitd855f8f67a4588f44ade0ed19744c99bfe81e76c (patch)
tree83128be6067bdd21a4c6a9440e15f387e20e9025 /include/raul/Socket.hpp
parentcf72f2855fccaf1c579388bcdba2a219a9983d96 (diff)
downloadraul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.gz
raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.bz2
raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.zip
Use nodiscard attribute
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();