]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insettheorem.C
index 2f51cd1b21e3c62feb0ad89d9bd35651fc1743b4..92e1f7789fd04867b51138ae802e29e247350b13 100644 (file)
@@ -56,14 +56,14 @@ void InsetTheorem::write(Buffer const * buf, ostream & os) const
 }
 
 
-InsetBase * InsetTheorem::clone() const
+auto_ptr<InsetBase> InsetTheorem::doClone() const
 {
 #ifdef WITH_WARNINGS
 #warning Is this inset used? If YES this is WRONG!!! (Jug)
 #endif
-       InsetTheorem * result = new InsetTheorem;
-
+       auto_ptr<InsetTheorem> result(new InsetTheorem);
        result->setCollapsed(!isOpen());
+
        return result;
 }
 
@@ -89,7 +89,7 @@ string const InsetTheorem::editMessage() const
 
 
 int InsetTheorem::latex(Buffer const * buf, ostream & os,
-                       LatexRunParams const & runparams) const
+                       OutputParams const & runparams) const
 {
        os << "\\begin{theorem}%\n";