1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-29 14:44:56 +03:00

No reason for NestedBool operator bool to be explicit

This commit is contained in:
Maxime Coste 2015-08-19 21:20:34 +01:00
parent 8af3b52bfa
commit 3834a967f8

View File

@ -25,7 +25,7 @@ struct NestedBool
void set() { m_count++; } void set() { m_count++; }
void unset() { kak_assert(m_count > 0); 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: private:
int m_count = 0; int m_count = 0;
}; };