mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Fix some global preferences has no effect
This commit is contained in:
parent
d46aa6133e
commit
b21eab7700
@ -185,7 +185,7 @@ public:
|
|||||||
|
|
||||||
template <typename T> tribool(const T &value) { set(value); }
|
template <typename T> tribool(const T &value) { set(value); }
|
||||||
|
|
||||||
tribool(const tribool &value) { *this = value; }
|
tribool(const tribool &value) { _M_VALUE = value._M_VALUE; }
|
||||||
|
|
||||||
~tribool() = default;
|
~tribool() = default;
|
||||||
|
|
||||||
@ -205,17 +205,16 @@ public:
|
|||||||
|
|
||||||
bool is_undef() const { return _M_VALUE <= 1; }
|
bool is_undef() const { return _M_VALUE <= 1; }
|
||||||
|
|
||||||
template <typename T> tribool define(const T &value)
|
template <typename T> tribool& define(const T &value)
|
||||||
{
|
{
|
||||||
if(_M_VALUE <= 1)
|
if(_M_VALUE <= 1)
|
||||||
*this = value;
|
*this = value;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T> tribool parse(const T &value)
|
template <typename T> tribool& parse(const T &value)
|
||||||
{
|
{
|
||||||
define(value);
|
return define(value);
|
||||||
return *this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tribool reverse()
|
tribool reverse()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user