]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetwrap.C
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / insetwrap.C
index f1249091e1700a9bed6eb1c0fdc74058a666faa0..a5ffa5a7ba3fd42c60608982353f93a22d8778fd 100644 (file)
@@ -80,11 +80,6 @@ InsetWrap::InsetWrap(InsetWrap const & in)
 {}
 
 
-// InsetWrap::InsetWrap(InsetWrap const & in, bool same_id)
-//     : InsetCollapsable(in, same_id), params_(in.params_)
-// {}
-
-
 InsetWrap::~InsetWrap()
 {
        InsetWrapMailer mailer(*this);
@@ -185,18 +180,12 @@ void InsetWrap::validate(LaTeXFeatures & features) const
 }
 
 
-Inset * InsetWrap::clone(Buffer const &) const
+Inset * InsetWrap::clone() const
 {
-       return new InsetWrap(*const_cast<InsetWrap *>(this));
+       return new InsetWrap(*this);
 }
 
 
-// Inset * InsetWrap::clone(Buffer const &, bool same_id) const
-// {
-//     return new InsetWrap(*const_cast<InsetWrap *>(this), same_id);
-// }
-
-
 string const InsetWrap::editMessage() const
 {
        return _("Opened Wrap Inset");