marked operators bool and uint8_t of return_base const.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
581e4a96bb
commit
919f67b123
@ -18,7 +18,7 @@
|
||||
|
||||
namespace Mastodon
|
||||
{
|
||||
return_base::operator bool()
|
||||
return_base::operator bool() const
|
||||
{
|
||||
if (error_code == 0)
|
||||
{
|
||||
@ -30,7 +30,7 @@ namespace Mastodon
|
||||
}
|
||||
}
|
||||
|
||||
return_base::operator uint8_t()
|
||||
return_base::operator uint8_t() const
|
||||
{
|
||||
return error_code;
|
||||
}
|
||||
|
@ -59,14 +59,14 @@ namespace Mastodon
|
||||
*
|
||||
* @since 0.100.0
|
||||
*/
|
||||
operator bool();
|
||||
operator bool() const;
|
||||
|
||||
/*!
|
||||
* @brief Same as return_base::error_code.
|
||||
*
|
||||
* @since 0.100.0
|
||||
*/
|
||||
operator uint8_t();
|
||||
operator uint8_t() const;
|
||||
} return_base;
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user