]> git.lyx.org Git - features.git/commitdiff
Initialize properly several InsetQuote members
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2017 16:02:20 +0000 (17:02 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2017 16:02:20 +0000 (17:02 +0100)
Spotted by coverity

src/insets/InsetQuotes.cpp

index 88f39790073ae4e0c2c596fe6c8cdd5db56c7cf1..7032a068a3c3765500c0634a16e42bb4209e2577 100644 (file)
@@ -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;