]> git.lyx.org Git - lyx.git/commitdiff
InsetCaption: move intialization to declaration
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 26 Jan 2021 09:17:25 +0000 (10:17 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 26 Jan 2021 09:18:31 +0000 (10:18 +0100)
src/insets/InsetCaption.cpp
src/insets/InsetCaption.h

index 9bf09410b9b08c031ba0ef1c2cd2b9aa45b95f48..f97fadef60150b37799c3e33eb1b9684b2926757 100644 (file)
@@ -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);
index 734564aaaf0288b0ba0953c93e9dd45cd09122fd..c5a7d086c7414fc5e266f5c3c8a36228185cea39 100644 (file)
@@ -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_;
 };