]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetBox.cpp
index 934ec0b4eb8f27a8ce8741cbac3e98aefb03cfb5..893946372701d2fad019c50110c54de28695709c 100644 (file)
@@ -25,7 +25,6 @@
 #include "Color.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
-#include "Paragraph.h"
 #include "TextMetrics.h"
 
 #include "support/Translator.h"
@@ -35,7 +34,6 @@
 
 namespace lyx {
 
-using std::auto_ptr;
 using std::string;
 using std::istringstream;
 using std::ostream;
@@ -114,9 +112,9 @@ InsetBox::~InsetBox()
 }
 
 
-auto_ptr<Inset> InsetBox::doClone() const
+Inset * InsetBox::clone() const
 {
-       return auto_ptr<Inset>(new InsetBox(*this));
+       return new InsetBox(*this);
 }