]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormVCLog.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormVCLog.C
index 4b694706354abf98dc6058b47ff31e239bbac99e..2c6be8eeb7bd570ac8cface9a308b9340e9c169e 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file FormVCLog.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon, moz@compsoc.man.ac.uk
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 #include "xformsBC.h"
 #include "ControlVCLog.h"
 #include "FormVCLog.h"
-#include "form_browser.h"
+#include "forms/form_browser.h"
 #include "gettext.h"
+#include FORMS_H_LOCATION
+
 
-FormVCLog::FormVCLog(ControlVCLog & c)
-       : FormCB<ControlVCLog, FormBrowser>(c, _("Version Control Log"))
+FormVCLog::FormVCLog()
+       : FormCB<ControlVCLog, FormBrowser>(_("Version Control Log"))
 {}
 
 
@@ -28,8 +32,8 @@ void FormVCLog::update()
 {
        fl_clear_browser(dialog_->browser);
 
-       stringstream ss;
-       fl_add_browser_line(dialog_->browser,
-                           controller().getVCLogFile(ss).str().c_str());
+       ostringstream ss;
+       controller().getVCLogFile(ss);
+
+       fl_add_browser_line(dialog_->browser, ss.str().c_str());
 }