uv_type: [[nodiscard]]
This commit is contained in:
parent
70572c4424
commit
258ddaed5f
@ -29,7 +29,7 @@ struct uv_type {
|
|||||||
* @brief Gets the loop from which the resource was originated.
|
* @brief Gets the loop from which the resource was originated.
|
||||||
* @return A reference to a loop instance.
|
* @return A reference to a loop instance.
|
||||||
*/
|
*/
|
||||||
loop &parent() const noexcept {
|
[[nodiscard]] loop &parent() const noexcept {
|
||||||
return *owner;
|
return *owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ struct uv_type {
|
|||||||
*
|
*
|
||||||
* @return The underlying raw data structure.
|
* @return The underlying raw data structure.
|
||||||
*/
|
*/
|
||||||
const U *raw() const noexcept {
|
[[nodiscard]] const U *raw() const noexcept {
|
||||||
return &resource;
|
return &resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ struct uv_type {
|
|||||||
*
|
*
|
||||||
* @return The underlying raw data structure.
|
* @return The underlying raw data structure.
|
||||||
*/
|
*/
|
||||||
U *raw() noexcept {
|
[[nodiscard]] U *raw() noexcept {
|
||||||
return &resource;
|
return &resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user