]> git.lyx.org Git - features.git/blobdiff - src/Literate.C
clear()->erase() ; lots of using directives for cxx
[features.git] / src / Literate.C
index 0be43b816292b28e9b20259b92e5cb6794bfedda..7443d01cfd1ad6d78464dcc0ede39a3c7c32d462 100644 (file)
@@ -1,11 +1,11 @@
 /* This file is part of
- * ======================================================
+ * ====================================================== 
  * 
  *           LyX, The Document Processor        
  *          Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team.
+ *           Copyright 1995-2000 The LyX Team.
  *
- * ======================================================
+ * ====================================================== 
  */
 
 #include <config.h>
@@ -13,6 +13,7 @@
 #ifdef __GNUG__
 #pragma implementation
 #endif
+#include <fstream>
 
 #include "support/filetools.h"
 #include "LaTeX.h"
 #include "minibuffer.h"
 #include "gettext.h"
 
+using std::ifstream;
+using std::getline;
+using std::endl;
+
 extern BufferList bufferlist;
 
 Literate::Literate(string const & latex, string const & f, string const & p, 
@@ -67,7 +72,7 @@ int Literate::weave(TeXErrors & terr, MiniBuffer * minib)
 }
 
 
-int Literate::build(TeXErrors & terr, MiniBuffer * minib)
+int Literate::build(TeXErrors & /*terr*/, MiniBuffer * minib)
         // We know that this function will only be run if the lyx buffer
         // has been changed. 
 {
@@ -119,7 +124,7 @@ int Literate::scanLiterateLogFile()
                         retval |= LATEX_ERROR;
                         lyxerr[Debug::LATEX] << "Build Error." << endl;
                         // this is not correct yet
-                        num_errors++;
+                        ++num_errors;
                 }
         }       
         return retval;
@@ -148,7 +153,7 @@ int Literate::scanBuildLogFile()
                         retval |= LATEX_ERROR;
                         lyxerr[Debug::LATEX] << "Build Error." << endl;
                         // this is not correct yet
-                        num_errors++;
+                        ++num_errors;
                 }
         }       
         return retval;