X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FEncoding.cpp;h=c6441f1dc05607d49ee8f780c7f0400ada17c3c6;hb=2417d9d911dbca181c48f45d1aad26d31c9aa815;hp=ae03c09b4869006f41363bf09f4bdca4e2112c66;hpb=5ae54ddafb0f8a9dd1a71d7a26549b31b6516e14;p=lyx.git diff --git a/src/Encoding.cpp b/src/Encoding.cpp index ae03c09b48..c6441f1dc0 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -519,20 +519,19 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile) string const iconvname = lex.getString(); lex.next(); string const width = lex.getString(); - bool fixedwidth;; + bool fixedwidth = false; if (width == "fixed") fixedwidth = true; else if (width == "variable") fixedwidth = false; else { - fixedwidth = false; lex.printError("Encodings::read: " "Unknown width: `$$Token'"); } lex.next(); string const p = lex.getString(); - Encoding::Package package; + Encoding::Package package = Encoding::none; if (p == "none") package = Encoding::none; else if (p == "inputenc") @@ -540,7 +539,6 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile) else if (p == "CJK") package = Encoding::CJK; else { - package = Encoding::none; lex.printError("Encodings::read: " "Unknown package: `$$Token'"); }