]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetTOC.cpp
index 2c74aea5f2d190b5901609c0d3e7ea913d681e46..bc4b6201d70f59720dcdd2edf06f62e411c1a9f4 100644 (file)
@@ -34,9 +34,9 @@ InsetTOC::InsetTOC(InsetCommandParams const & p)
 {}
 
 
-std::auto_ptr<Inset> InsetTOC::doClone() const
+Inset * InsetTOC::clone() const
 {
-       return std::auto_ptr<Inset>(new InsetTOC(*this));
+       return new InsetTOC(*this);
 }
 
 
@@ -57,7 +57,7 @@ Inset::Code InsetTOC::lyxCode() const
 
 
 int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
-                        OutputParams const &) const
+                       OutputParams const &) const
 {
        os << getScreenLabel(buffer) << "\n\n";
 
@@ -68,7 +68,7 @@ int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
 
 
 int InsetTOC::docbook(Buffer const &, odocstream & os,
-                      OutputParams const &) const
+                     OutputParams const &) const
 {
        if (getCmdName() == "tableofcontents")
                os << "<toc></toc>";