]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetmarginal.C
reformatting and remove using delc
[lyx.git] / src / insets / insetmarginal.C
index 9d078780a9a08d4a876ac80c14bf73ef34487716..4a631bd8ccef46150748636aa2542e3fd76bb1d5 100644 (file)
@@ -23,9 +23,6 @@
 #include "support/LOstream.h"
 #include "debug.h"
 
-using std::ostream;
-using std::endl;
-
 
 InsetMarginal::InsetMarginal()
        : InsetFootlike()
@@ -35,10 +32,10 @@ InsetMarginal::InsetMarginal()
 }
 
 
-Inset * InsetMarginal::Clone() const
+Inset * InsetMarginal::Clone(Buffer const &) const
 {
        InsetMarginal * result = new InsetMarginal;
-       result->inset->init(inset);
+       result->inset.init(&inset);
        
        result->collapsed = collapsed;
        return result;
@@ -52,11 +49,11 @@ string const InsetMarginal::EditMessage() const
 
 
 int InsetMarginal::Latex(Buffer const * buf,
-                        ostream & os, bool fragile, bool fp) const
+                        std::ostream & os, bool fragile, bool fp) const
 {
        os << "\\marginpar{%\n";
        
-       int i = inset->Latex(buf, os, fragile, fp);
+       int const i = inset.Latex(buf, os, fragile, fp);
        os << "}%\n";
        
        return i + 2;