]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetMarginal.cpp
index 27e9a0a1a06c48cc85d31d35402786320255ab47..3a4ed9407dfff51bd27a5dd4bbdad9589550752d 100644 (file)
 
 namespace lyx {
 
-using std::string;
-using std::auto_ptr;
-using std::ostream;
-
 
 InsetMarginal::InsetMarginal(BufferParams const & bp)
        : InsetFootlike(bp)
-{
-       setLayout(bp);
-}
+{}
 
 
 InsetMarginal::InsetMarginal(InsetMarginal const & in)
@@ -39,9 +33,9 @@ InsetMarginal::InsetMarginal(InsetMarginal const & in)
 {}
 
 
-auto_ptr<Inset> InsetMarginal::doClone() const
+Inset * InsetMarginal::clone() const
 {
-       return auto_ptr<Inset>(new InsetMarginal(*this));
+       return new InsetMarginal(*this);
 }