]> git.lyx.org Git - features.git/blobdiff - src/insets/insetbibitem.C
parlist-23-a,diff
[features.git] / src / insets / insetbibitem.C
index 37372d16769fb8174b855eba6119f6a1bf2afc14..cc26ab979b102faac373a923540ca4d869badb27 100644 (file)
@@ -43,7 +43,7 @@ InsetBibitem::~InsetBibitem()
 }
 
 
-Inset * InsetBibitem::clone(Buffer const &, bool) const
+Inset * InsetBibitem::clone(Buffer const &) const
 {
        InsetBibitem * b = new InsetBibitem(params());
        b->setCounter(counter);
@@ -51,6 +51,14 @@ Inset * InsetBibitem::clone(Buffer const &, bool) const
 }
 
 
+// Inset * InsetBibitem::clone(Buffer const &, bool) const
+// {
+//     InsetBibitem * b = new InsetBibitem(params());
+//     b->setCounter(counter);
+//     return b;
+// }
+
+
 dispatch_result InsetBibitem::localDispatch(FuncRequest const & cmd)
 {
        switch (cmd.action) {
@@ -161,11 +169,11 @@ 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 =