[LyX/master] Use 'delete' for unimplemented constructors.

Richard Kimberly Heck rikiheck at lyx.org
Wed Oct 7 14:40:14 UTC 2020


commit b511d8d93e7557f90fea6a3fe5e3e7e908a8ebf9
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Wed Oct 7 11:05:54 2020 -0400

    Use 'delete' for unimplemented constructors.
    
    Thanks Yuriy!
---
 src/insets/InsetTabular.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetTabular.h b/src/insets/InsetTabular.h
index 3db458a..d71c25b 100644
--- a/src/insets/InsetTabular.h
+++ b/src/insets/InsetTabular.h
@@ -89,10 +89,10 @@ public:
 	/// Can the cell contain several paragraphs?
 	bool allowMultiPar() const override { return !isMultiRow && (!isMultiColumn || isFixedWidth); }
 private:
-	/// unimplemented
-	InsetTableCell();
-	/// unimplemented
-	void operator=(InsetTableCell const &);
+	///
+	InsetTableCell() = delete;
+	///
+	void operator=(InsetTableCell const &) = delete;
 	// FIXME
 	// These booleans are supposed to track whether the cell has had its
 	// width explicitly set and whether it is part of a multicolumn, respectively.


More information about the lyx-cvs mailing list