]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.C
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / insetnote.C
index ce8f14ee1a9ea49050b344f3eb40fa66cc37f502..0fb0fb64709ff8fd868fdf1e596e25e46ecde18a 100644 (file)
@@ -46,16 +46,16 @@ InsetNote::InsetNote(BufferParams const & bp)
 }
 
 
-InsetNote::InsetNote(InsetNote const & in, bool same_id)
-       : InsetCollapsable(in, same_id)
+InsetNote::InsetNote(InsetNote const & in)
+       : InsetCollapsable(in)
 {
        init();
 }
 
 
-Inset * InsetNote::clone(Buffer const &, bool same_id) const
+Inset * InsetNote::clone() const
 {
-       return new InsetNote(*const_cast<InsetNote *>(this), same_id);
+       return new InsetNote(*this);
 }
 
 
@@ -65,7 +65,7 @@ string const InsetNote::editMessage() const
 }
 
 
-void InsetNote::write(Buffer const *buf, ostream & os) const
+void InsetNote::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
        InsetCollapsable::write(buf, os);