]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbib.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / insets / insetbib.C
index 1b1314b5b8d3a387a2d5941e1e016e3aa0b57b4b..7b2838171257b04583001e462df41a9d3c346e7d 100644 (file)
@@ -11,7 +11,7 @@
 #include "insetbib.h"
 #include "combox.h"
 #include "buffer.h"
-#include "error.h"
+#include "debug.h"
 #include "lyx_gui_misc.h"
 #include "BufferView.h"
 #include "gettext.h"
@@ -27,12 +27,11 @@ static Combox *bibcombox = 0;
 
 extern void UpdateInset(Inset* inset, bool mark_dirty = true);
 void BibitemUpdate(Combox *);
-void bibitem_cb(FL_OBJECT *, long);
 FD_citation_form * create_form_citation_form(void);
 FD_bibitem_form * create_form_bibitem_form(void);
 
 
-void bibitem_cb(FL_OBJECT *, long data)
+extern "C" void bibitem_cb(FL_OBJECT *, long data)
 {
        switch (data) {
 //       case 0: fl_hide_form(citation_form->citation_form);
@@ -232,7 +231,7 @@ void InsetBibKey::setCounter(int c)
        counter = c; 
     
        if (contents.empty())
-               contents += counter;
+               contents += tostr(counter);
 }
 
 
@@ -418,7 +417,7 @@ string InsetBibtex::getKeys()
                                                                keys += strip(tmp) + ",";
                                                }
                                        }
-                                       linebuf.erase();
+                                       linebuf.clear();
                                } else {
                                        linebuf += c;
                                }