]> git.lyx.org Git - features.git/commitdiff
Use explicit default syntax (C++11).
authorRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 7 Oct 2020 00:31:11 +0000 (20:31 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 7 Oct 2020 00:31:11 +0000 (20:31 -0400)
Thanks to Jos'e for noticing this option.

src/insets/InsetTabular.cpp
src/insets/InsetTabular.h

index 29858c51a89f3e87cbb5b835b3f971cdfd7a9a7a..afd29761e92709bc59293a3dea7021778698c8a1 100644 (file)
@@ -4205,14 +4205,6 @@ InsetTableCell::InsetTableCell(Buffer * buf)
          isMultiColumn(false), isMultiRow(false), contentAlign(LYX_ALIGN_CENTER)
 {}
 
-InsetTableCell::InsetTableCell(InsetTableCell const & in) : InsetText(in)
-{
-       isFixedWidth = in.isFixedWidth;
-       isMultiColumn = in.isMultiColumn;
-       isMultiRow = in.isMultiRow;
-       contentAlign = in.contentAlign;
-}
-
 bool InsetTableCell::forcePlainLayout(idx_type) const
 {
        return isMultiRow || (isMultiColumn && !isFixedWidth);
index 33d4974107355415263af672ec773d40e2f69d10..3db458af0193022189db93d17473a16e72fc5825 100644 (file)
@@ -55,9 +55,8 @@ public:
        ///
        explicit InsetTableCell(Buffer * buf);
        /// We need this since generation of the default is deprecated
-       /// (since we declare the assignment constucture below).
-       /// Please make sure to adjust it if you add members!
-       InsetTableCell(InsetTableCell const &);
+       /// (since we declare the assignment constuctor below).
+       InsetTableCell(InsetTableCell const & in) = default;
        ///
        InsetCode lyxCode() const override { return CELL_CODE; }
        ///
@@ -118,9 +117,6 @@ private:
        // be quite slow.
        // So, well, if someone can do better, please do!
        // --rkh
-       //
-       // NOTE: Make sure to adapt the construcors (especially the copy
-       // constructor) if you add members!
        ///
        bool isFixedWidth;
        ///