]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTheorem.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetTheorem.cpp
index 8e663a4310d3e1782bdd9000e8593b89ae8436f1..6ff0e99c9017b20d5161687824f986dfdbff116a 100644 (file)
@@ -58,17 +58,15 @@ void Inset.heorem::write(Buffer const * buf, ostream & os) const
 }
 
 
-auto_ptr<Inset> Inset.heorem::doClone() const
+Inset * InsetTheorem::clone() const
 {
-#ifdef WITH_WARNINGS
-#warning Is this inset used? If YES this is WRONG!!! (Jug)
-#endif
-       auto_ptr<Inset.heorem> result(new InsetTheorem);
+       // FIXME: Is this inset used? If YES this is WRONG!!! (Jug)
+       InsetTheorem * result = new InsetTheorem;
        result->setCollapsed(!isOpen());
-
        return result;
 }
 
+
 bool Inset.heorem::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        InsetCollapsable::metrics(mi, dim);