commit cb3db8b4cf8529b7cd1269d0cfe8d92820e68307 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jan 26 10:17:25 2021 +0100
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 9bf0941..f97fade 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 734564a..c5a7d08 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_; }; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs