X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FKeySequence.cpp;h=c80490f38fafa03f72f6a7183554157128a9bfed;hb=f2f7ea9edcdafb0e02d91cc2af53185154d41bd8;hp=a0f2f5bda2c3a970535a75600a7d702867852b4b;hpb=e9d943aeb8bbe5fb211977c84160813cfcbecb34;p=lyx.git diff --git a/src/KeySequence.cpp b/src/KeySequence.cpp index a0f2f5bda2..c80490f38f 100644 --- a/src/KeySequence.cpp +++ b/src/KeySequence.cpp @@ -125,8 +125,7 @@ size_t KeySequence::parse(string const & s) } } - // empty sequence? - if (sequence.size() == 0) + if (sequence.empty()) return 0; // everything is fine @@ -160,7 +159,7 @@ docstring const KeySequence::print(outputFormat format) const buf += "M-"; if (mod & ShiftModifier) buf += "S-"; - + buf += from_utf8(sequence[i].getSymbolName()); break; }