]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetOptArg.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetOptArg.cpp
index 71d9a2b63d1dd8d87bfa68f43fb1f9004b04579f..6150bc8bdbc4dfcdd9220a98a83004ad281b422e 100644 (file)
 
 #include "debug.h"
 #include "gettext.h"
-#include "Color.h"
-#include "Paragraph.h"
-
-#include <sstream>
 
 
 namespace lyx {
 
-using std::string;
-using std::auto_ptr;
-using std::ostream;
-using std::ostringstream;
-
 
 InsetOptArg::InsetOptArg(BufferParams const & ins)
        : InsetCollapsable(ins)
@@ -48,9 +39,9 @@ InsetOptArg::InsetOptArg(InsetOptArg const & in)
 }
 
 
-auto_ptr<Inset> InsetOptArg::doClone() const
+Inset * InsetOptArg::clone() const
 {
-       return auto_ptr<Inset>(new InsetOptArg(*this));
+       return new InsetOptArg(*this);
 }
 
 
@@ -60,7 +51,7 @@ docstring const InsetOptArg::editMessage() const
 }
 
 
-void InsetOptArg::write(Buffer const & buf, ostream & os) const
+void InsetOptArg::write(Buffer const & buf, std::ostream & os) const
 {
        os << "OptArg" << "\n";
        InsetCollapsable::write(buf, os);