From cb3db8b4cf8529b7cd1269d0cfe8d92820e68307 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 26 Jan 2021 10:17:25 +0100 Subject: [PATCH] InsetCaption: move intialization to declaration --- src/insets/InsetCaption.cpp | 3 +-- src/insets/InsetCaption.h | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index 9bf09410b9..f97fadef60 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -53,8 +53,7 @@ namespace lyx { InsetCaption::InsetCaption(Buffer * buf, string const & type) - : InsetText(buf, InsetText::PlainLayout), - labelwidth_(0), is_subfloat_(false), is_deleted_(false), type_(type) + : InsetText(buf, InsetText::PlainLayout), type_(type) { setDrawFrame(true); setFrameColor(Color_collapsibleframe); diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index 734564aaaf..c5a7d086c7 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -94,13 +94,13 @@ private: /// mutable docstring full_label_; /// - mutable int labelwidth_; + mutable int labelwidth_ = 0; /// std::string floattype_; /// - bool is_subfloat_; + bool is_subfloat_ = false; /// - bool is_deleted_; + bool is_deleted_ = false; /// std::string type_; }; -- 2.39.5