]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.h
Add a move constructor to Inset
[features.git] / src / insets / Inset.h
index 4396c9bc2a439caf8aaf62b9f0bad5f798923978..0d6969832561914d05964bb5f49ee57c566e96ef 100644 (file)
@@ -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,7 +631,8 @@ public:
 protected:
        /// Constructors
        Inset(Buffer * buf) : buffer_(buf) {}
-       Inset(Inset const &) : buffer_(0) {}
+       Inset(Inset const &) : buffer_(nullptr) {}
+       Inset(Inset const &&) : buffer_(nullptr) {}
 
        /// replicate ourselves
        friend class InsetList;