mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 06:08:05 +03:00
No reason for NestedBool operator bool to be explicit
This commit is contained in:
parent
8af3b52bfa
commit
3834a967f8
@ -25,7 +25,7 @@ struct NestedBool
|
||||
void set() { m_count++; }
|
||||
void unset() { kak_assert(m_count > 0); m_count--; }
|
||||
|
||||
explicit operator bool() const { return m_count > 0; }
|
||||
operator bool() const { return m_count > 0; }
|
||||
private:
|
||||
int m_count = 0;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user