]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / insetfoot.C
index c020e5484596cc2b0d3711e16c24e722424705bf..e53a1db8769033fc5c4a03e1ef0898fdbf0b4c56 100644 (file)
@@ -46,26 +46,12 @@ InsetFoot::InsetFoot(InsetFoot const & in)
 }
 
 
-// InsetFoot::InsetFoot(InsetFoot const & in, bool same_id)
-//     : InsetFootlike(in, same_id)
-// {
-//     setLabel(_("foot"));
-//     setInsetName("Foot");
-// }
-
-
-Inset * InsetFoot::clone(Buffer const &) const
+Inset * InsetFoot::clone() const
 {
-       return new InsetFoot(*const_cast<InsetFoot *>(this));
+       return new InsetFoot(*this);
 }
 
 
-// Inset * InsetFoot::clone(Buffer const &, bool same_id) const
-// {
-//     return new InsetFoot(*const_cast<InsetFoot *>(this), same_id);
-// }
-
-
 string const InsetFoot::editMessage() const
 {
        return _("Opened Footnote Inset");