]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormVCLog.C
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / FormVCLog.C
index fc0eac28f7c0e0b0199fb7ab834f6af9668a318b..87c1a9e606a3f90f48312073b47ca5d57c2dc882 100644 (file)
@@ -1,23 +1,28 @@
-// -*- C++ -*-
-/* FormVCLog.C
- * (C) 2001 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
+/**
+ * \file FormVCLog.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include <config.h>
-#include "xformsBC.h"
-#include "ControlVCLog.h"
+
 #include "FormVCLog.h"
-#include "form_browser.h"
-#include "gettext.h"
-#include "Lsstream.h"
+#include "ControlVCLog.h"
+#include "forms/form_browser.h"
 
-FormVCLog::FormVCLog(ControlVCLog & c)
-       : FormCB<ControlVCLog, FormBrowser>(c, _("Version Control Log"))
+#include "xformsBC.h"
+
+#include "lyx_forms.h"
+
+#include "support/std_sstream.h"
+
+
+FormVCLog::FormVCLog(Dialog & parent)
+       : FormController<ControlVCLog, FormBrowser>(parent, _("Version Control Log"))
 {}
 
 
@@ -25,8 +30,8 @@ void FormVCLog::update()
 {
        fl_clear_browser(dialog_->browser);
 
-       std::stringstream ss;
-       fl_add_browser_line(dialog_->browser,
-                           controller().getVCLogFile(ss).str().c_str());
+       std::ostringstream ss;
+       controller().getVCLogFile(ss);
+
+       fl_add_browser_line(dialog_->browser, ss.str().c_str());
 }