]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibitem.C
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / insetbibitem.C
index 37372d16769fb8174b855eba6119f6a1bf2afc14..24da31f2d5b28a2ccf5324059a43fb22f8524736 100644 (file)
@@ -43,7 +43,7 @@ InsetBibitem::~InsetBibitem()
 }
 
 
-Inset * InsetBibitem::clone(Buffer const &, bool) const
+Inset * InsetBibitem::clone() const
 {
        InsetBibitem * b = new InsetBibitem(params());
        b->setCounter(counter);
@@ -161,11 +161,12 @@ string const bibitemWidest(Buffer const * buffer)
        int w = 0;
        // Does look like a hack? It is! (but will change at 0.13)
 
-       InsetBibitem * bitem = 0;
+       InsetBibitem const * bitem = 0;
        LyXFont font;
 
-       ParagraphList::iterator it = buffer->paragraphs.begin();
-       ParagraphList::iterator end = buffer->paragraphs.end();
+       ParagraphList::const_iterator it = buffer->paragraphs.begin();
+       ParagraphList::const_iterator end = buffer->paragraphs.end();
+
        for (; it != end; ++it) {
                if (it->bibitem()) {
                        int const wx =