From: Jean-Marc Lasgouttes Date: Wed, 1 Mar 2017 16:02:20 +0000 (+0100) Subject: Initialize properly several InsetQuote members X-Git-Tag: 2.3.0alpha1~297 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=91d8a3982d4acd9118217b4d30a5500e3bbd178e;p=lyx.git Initialize properly several InsetQuote members Spotted by coverity --- diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 88f3979007..7032a068a3 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -606,7 +606,10 @@ docstring const InsetQuotesParams::getShortGuiLabel(docstring const string) // /////////////////////////////////////////////////////////////////////// -InsetQuotes::InsetQuotes(Buffer * buf, string const & str) : Inset(buf) +InsetQuotes::InsetQuotes(Buffer * buf, string const & str) + : Inset(buf), + style_(InsetQuotesParams::EnglishQuotes), side_(InsetQuotesParams::OpeningQuote), + pass_thru_(false) { if (buf) { global_style_ = buf->masterBuffer()->params().quotes_style;