]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
Cosmetics.
[lyx.git] / src / insets / InsetFloat.cpp
index 370a29d16d502ffed22d0f08d92c5ef2d8ed2bff..df970d3de98dea2e3e3437d872e56b20b9592e7f 100644 (file)
@@ -111,10 +111,10 @@ namespace lyx {
 // Lgb
 
 
-InsetFloat::InsetFloat(BufferParams const & bp, string const & type)
-       : InsetCollapsable(bp), name_(from_utf8(type))
+InsetFloat::InsetFloat(Buffer const & buf, string const & type)
+       : InsetCollapsable(buf), name_(from_utf8(type))
 {
-       setLabel(_("float: ") + floatName(type, bp));
+       setLabel(_("float: ") + floatName(type, buf.params()));
        params_.type = type;
 }
 
@@ -273,9 +273,8 @@ void InsetFloat::read(Lexer & lex)
 
 void InsetFloat::validate(LaTeXFeatures & features) const
 {
-       if (support::contains(params_.placement, 'H')) {
+       if (support::contains(params_.placement, 'H'))
                features.require("float");
-       }
 
        if (params_.sideways)
                features.require("rotfloat");
@@ -288,12 +287,6 @@ void InsetFloat::validate(LaTeXFeatures & features) const
 }
 
 
-Inset * InsetFloat::clone() const
-{
-       return new InsetFloat(*this);
-}
-
-
 docstring InsetFloat::editMessage() const
 {
        return _("Opened Float Inset");