X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FXLyXKeySym.C;h=a16a7bc6c12e90eb9a66f9851463d79761a17e26;hb=d5443737342903de489d527802cd2cdd38987d74;hp=5a71008dabc9a4c617f91fb93763f907f7cb6f3b;hpb=500fa5f5912440de5cc5f1dcb75955f4b09b9e50;p=lyx.git diff --git a/src/frontends/xforms/XLyXKeySym.C b/src/frontends/xforms/XLyXKeySym.C index 5a71008dab..a16a7bc6c1 100644 --- a/src/frontends/xforms/XLyXKeySym.C +++ b/src/frontends/xforms/XLyXKeySym.C @@ -21,6 +21,17 @@ using std::endl; using std::string; +bool operator==(LyXKeySym const & k1, LyXKeySym const & k2) +{ + using lyx::frontend::XLyXKeySym; + return static_cast(k1).keysym() + == static_cast(k2).keysym(); +} + + +namespace lyx { +namespace frontend { + XLyXKeySym::XLyXKeySym() : LyXKeySym(), keysym_(NoSymbol) { @@ -106,9 +117,5 @@ string const XLyXKeySym::print(key_modifier::state mod) const return kb_keymap::printKeySym(*this, mod); } - -bool operator==(LyXKeySym const & k1, LyXKeySym const & k2) -{ - return static_cast(k1).keysym() - == static_cast(k2).keysym(); -} +} // namespace frontend +} // namespace lyx