]> git.lyx.org Git - lyx.git/commitdiff
Explicit InsetTableCell copy constructor
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Oct 2021 14:20:40 +0000 (16:20 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Oct 2021 15:43:12 +0000 (17:43 +0200)
Use explicit default syntax (C++11).

Adapted from:
commit bff97ba76d65da3f9048ef107b29ee642bdd5229
commit 3d46cc302bcff979a874ef2ea9c8a56a85aaec77

src/insets/InsetTabular.h

index 1398276a89c5737c852836cdc608fad89c79f5c1..1e2fb655ad109e0583834a7ae9e9b59bb5c0a7d6 100644 (file)
@@ -53,6 +53,9 @@ class InsetTableCell : public InsetText
 public:
        ///
        InsetTableCell(Buffer * buf);
+       /// We need this since generation of the default is deprecated
+       /// (since we declare the assignment constuctor below).
+       InsetTableCell(InsetTableCell const & in) = default;
        ///
        InsetCode lyxCode() const { return CELL_CODE; }
        ///