]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaptionable.cpp
Check path of Qt tools if qtchooser is detected
[lyx.git] / src / insets / InsetCaptionable.cpp
index 0434c2eb2f7f235b78b72454f560135bb48014f3..c105d5ed99fbe047961dd63764648860d3bb97b4 100644 (file)
@@ -55,11 +55,11 @@ void InsetCaptionable::addToToc(DocIterator const & cpit, bool output_active,
        // non-empty.
        if (utype != OutputUpdate)
                text().forOutliner(str, TOC_ENTRY_LENGTH);
-       shared_ptr<TocBuilder> b = buffer().tocBackend().builder(caption_type_);
-       b->pushItem(pit, str, output_active);
+       TocBuilder & b = buffer().tocBackend().builder(caption_type_);
+       b.pushItem(pit, str, output_active);
        // Proceed with the rest of the inset.
        InsetCollapsable::addToToc(cpit, output_active, utype);
-       b->pop();
+       b.pop();
 }
 
 void InsetCaptionable::updateBuffer(ParIterator const & it, UpdateType utype)