[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-cvs
Subject: [LyX/master] Revert "Add a move constructor to Inset"
From: Jean-Marc Lasgouttes <lasgouttes () lyx ! org>
Date: 2021-07-12 10:23:14
Message-ID: 20210712102314.4E339280719 () lyx ! lyx ! org
[Download RAW message or body]
commit 1c200e0d998b96b081954df52422be61eab8f2fe
Author: Jean-Marc Lasgouttes <lasgouttes@lyx.org>
Date: Mon Jul 12 12:38:16 2021 +0200
Revert "Add a move constructor to Inset"
It does not compile :-p
This reverts commit 874928f4a4370d8b7b8092df33f4436a0f52e7f7.
---
src/insets/Inset.h | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/insets/Inset.h b/src/insets/Inset.h
index 0d69698..4396c9b 100644
--- a/src/insets/Inset.h
+++ b/src/insets/Inset.h
@@ -350,8 +350,8 @@ public:
/// Appends a potentially abbreviated version of the inset to
/// \param str. Intended for use by the TOC.
virtual void forOutliner(docstring & str,
- size_t const maxlen = TOC_ENTRY_LENGTH,
- bool const shorten = true) const;
+ size_t const maxlen = TOC_ENTRY_LENGTH,
+ bool const shorten = true) const;
/// Can a cursor be put in there ?
/// Forced to false for insets that have hidden contents, like
@@ -631,8 +631,7 @@ public:
protected:
/// Constructors
Inset(Buffer * buf) : buffer_(buf) {}
- Inset(Inset const &) : buffer_(nullptr) {}
- Inset(Inset const &&) : buffer_(nullptr) {}
+ Inset(Inset const &) : buffer_(0) {}
/// replicate ourselves
friend class InsetList;
--
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic