]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Squash some warnings.
[lyx.git] / src / insets / InsetCaption.cpp
index 208ad1ac38e8da2f31fa2fc7aa0dd2f0343df5e4..05b7dc7766b2b79d0167c286b5989d0dbeebda0f 100644 (file)
@@ -107,7 +107,7 @@ void InsetCaption::addToToc(DocIterator const & cpit, bool output_active,
                str = full_label_;
                text().forOutliner(str, length);
        }
-       buffer().tocBackend().builder(type)->captionItem(pit, str, output_active);
+       buffer().tocBackend().builder(type).captionItem(pit, str, output_active);
        // Proceed with the rest of the inset.
        InsetText::addToToc(cpit, output_active, utype);
 }
@@ -302,7 +302,7 @@ docstring InsetCaption::xhtml(XHTMLStream & xs, OutputParams const & rp) const
                string const our_class = "float-caption-" + type_;
                size_t const loc = attr.find("class='");
                if (loc != string::npos)
-                       attr.insert(loc + 7, our_class+ " ");
+                       attr.insert(loc + 7, our_class + " ");
                else
                        attr = attr + " class='" + our_class + "'";
        }