]> git.lyx.org Git - lyx.git/blobdiff - src/BranchList.h
Fix a crash when closing tabs
[lyx.git] / src / BranchList.h
index c221dc82273df72f5201f5b929b85e5636d9ab28..60e6b8d26c205f1b3c26ca28afd2785500004732 100644 (file)
@@ -43,7 +43,7 @@ namespace lyx {
 class Branch {
 public:
        ///
-       Branch();
+       Branch() {}
        ///
        docstring const & branch() const;
        ///
@@ -86,15 +86,15 @@ private:
        ///
        docstring branch_;
        ///
-       bool selected_;
+       bool selected_ = false;
        ///
-       bool filenameSuffix_;
+       bool filenameSuffix_ = false;
        /// light mode background color
-       std::string lmcolor_;
+       std::string lmcolor_ = "background";
        /// dark mode background color
-       std::string dmcolor_;
+       std::string dmcolor_ = "background";
        ///
-       int branch_list_id_;
+       int branch_list_id_ = 0;
 };