]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetFloat.cpp
index 9a91f0c6cfd8958f8d9c0c5106bf7544b4df7acf..56d57a8de80b505a93282f6d93eb5c3ce2b2ba05 100644 (file)
 
 namespace lyx {
 
-using support::contains;
-
 using std::endl;
 using std::string;
-using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
 using std::ostringstream;
@@ -267,7 +264,7 @@ void InsetFloat::read(Buffer const & buf, Lexer & lex)
 
 void InsetFloat::validate(LaTeXFeatures & features) const
 {
-       if (contains(params_.placement, 'H')) {
+       if (support::contains(params_.placement, 'H')) {
                features.require("float");
        }
 
@@ -279,9 +276,9 @@ void InsetFloat::validate(LaTeXFeatures & features) const
 }
 
 
-auto_ptr<Inset> InsetFloat::doClone() const
+Inset * InsetFloat::clone() const
 {
-       return auto_ptr<Inset>(new InsetFloat(*this));
+       return new InsetFloat(*this);
 }