mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-07 16:12:30 -06:00
Use the same internal data type for conversion function
This commit is contained in:
@@ -43,13 +43,13 @@ public:
|
||||
*this = boolean ? True : False;
|
||||
}
|
||||
|
||||
explicit constexpr operator int() const
|
||||
TriStateBool &operator=(const TriStateBool &other) = default; // TODO: add constexpr when using C++17
|
||||
|
||||
explicit constexpr operator signed char() const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
TriStateBool &operator=(const TriStateBool &other) = default; // add constexpr when using C++17
|
||||
|
||||
constexpr friend bool operator==(const TriStateBool &left, const TriStateBool &right)
|
||||
{
|
||||
return (left.m_value == right.m_value);
|
||||
|
||||
Reference in New Issue
Block a user