uv_type: [[nodiscard]]

This commit is contained in:
Michele Caini 2024-10-23 08:35:37 +02:00
parent 70572c4424
commit 258ddaed5f

View File

@ -29,7 +29,7 @@ struct uv_type {
* @brief Gets the loop from which the resource was originated.
* @return A reference to a loop instance.
*/
loop &parent() const noexcept {
[[nodiscard]] loop &parent() const noexcept {
return *owner;
}
@ -48,7 +48,7 @@ struct uv_type {
*
* @return The underlying raw data structure.
*/
const U *raw() const noexcept {
[[nodiscard]] const U *raw() const noexcept {
return &resource;
}
@ -67,7 +67,7 @@ struct uv_type {
*
* @return The underlying raw data structure.
*/
U *raw() noexcept {
[[nodiscard]] U *raw() noexcept {
return &resource;
}