InsetCaption: move intialization to declaration

This commit is contained in:
Jean-Marc Lasgouttes 2021-01-26 10:17:25 +01:00
parent 76eae4572e
commit cb3db8b4cf
2 changed files with 4 additions and 5 deletions

View File

@ -53,8 +53,7 @@ namespace lyx {
InsetCaption::InsetCaption(Buffer * buf, string const & type) InsetCaption::InsetCaption(Buffer * buf, string const & type)
: InsetText(buf, InsetText::PlainLayout), : InsetText(buf, InsetText::PlainLayout), type_(type)
labelwidth_(0), is_subfloat_(false), is_deleted_(false), type_(type)
{ {
setDrawFrame(true); setDrawFrame(true);
setFrameColor(Color_collapsibleframe); setFrameColor(Color_collapsibleframe);

View File

@ -94,13 +94,13 @@ private:
/// ///
mutable docstring full_label_; mutable docstring full_label_;
/// ///
mutable int labelwidth_; mutable int labelwidth_ = 0;
/// ///
std::string floattype_; std::string floattype_;
/// ///
bool is_subfloat_; bool is_subfloat_ = false;
/// ///
bool is_deleted_; bool is_deleted_ = false;
/// ///
std::string type_; std::string type_;
}; };