X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFuncStatus.cpp;h=576376a4eec20ad5d4196d4410c188ece136541f;hb=837869452ad8d917615aa4bca77402dc49ba094e;hp=f7b529b856056094394910345459edbdfa9b7b05;hpb=5a67cddfe8be65beec3d24bbae31837bf704a35a;p=lyx.git diff --git a/src/FuncStatus.cpp b/src/FuncStatus.cpp index f7b529b856..576376a4ee 100644 --- a/src/FuncStatus.cpp +++ b/src/FuncStatus.cpp @@ -28,15 +28,7 @@ void FuncStatus::clear() } -void FuncStatus::operator|=(FuncStatus const & f) -{ - v_ |= f.v_; - if (!f.message_.empty()) - message_ = f.message_; -} - - -void FuncStatus::unknown(bool b) +void FuncStatus::setUnknown(bool b) { if (b) v_ |= UNKNOWN; @@ -52,7 +44,7 @@ bool FuncStatus::unknown() const } -void FuncStatus::enabled(bool b) +void FuncStatus::setEnabled(bool b) { if (b) v_ &= ~DISABLED; @@ -73,7 +65,7 @@ void FuncStatus::setOnOff(bool b) } -bool FuncStatus::onoff(bool b) const +bool FuncStatus::onOff(bool b) const { if (b) return (v_ & ON);