X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTrans.cpp;h=ed73c7719b397699db193c51efc127059df18577;hb=f56ee1875c9bf2665ab7377fdc3ff3ec80d9268f;hp=0e7d561c4e3bc891ba81f36767375123e07c7bbe;hpb=fb3bb6361c974802ab92156da1172faacd0ef641;p=lyx.git diff --git a/src/Trans.cpp b/src/Trans.cpp index 0e7d561c4e..ed73c7719b 100644 --- a/src/Trans.cpp +++ b/src/Trans.cpp @@ -287,6 +287,10 @@ int Trans::load(Lexer & lex) allowed = lex.getDocString(); LYXERR(Debug::KBMAP, "allowed: " << to_utf8(allowed)); + // FIXME Coverity + // This is being flagged because we could in principle fail + // ever to hit the break above, in which case we exit the loop + // when it == end. Then this crashes. insertException(kmod_list_[accent_1].exception_list, it->first, allowed, true, accent_2); } @@ -429,10 +433,9 @@ tex_accent getkeymod(string const & p) // TransFSMData -TransFSMData::TransFSMData() +TransFSMData::TransFSMData() : deadkey_(0), deadkey2_(0), init_state_(0), + deadkey_state_(0), combined_state_(0), currentState(0) { - deadkey_ = deadkey2_ = 0; - deadkey_info_.accent = deadkey2_info_.accent = TEX_NOACCENT; }