Removed unnecessary type qualifiers.

This commit is contained in:
tastytea 2019-03-28 13:42:19 +01:00
parent 12d986ed06
commit 354f7e1b90
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@
#include "mastodon-cpp.hpp"
using namespace Mastodon;
return_base::operator const bool() const
return_base::operator bool()
{
if (error_code == 0)
{
@ -37,7 +37,7 @@ return_base::operator const bool() const
}
}
return_base::operator const uint8_t() const
return_base::operator uint8_t()
{
return error_code;
}
@ -47,7 +47,7 @@ return_call::operator const string() const
return answer;
}
std::ostream &Mastodon::operator <<(std::ostream &out, const return_call &ret)
std::ostream &operator <<(std::ostream &out, const return_call &ret)
{
out << ret.answer;
return out;

View File

@ -47,8 +47,8 @@ namespace Mastodon
uint8_t error_code = 0; // NOTE: http://mazack.org/unix/errno.php
string error_message;
operator const bool() const;
operator const uint8_t() const;
operator bool();
operator uint8_t();
} return_base;
/*!