View | Details | Raw Unified | Return to bug 45765
Collapse All | Expand All

(-)files/patch-aa (+28 lines)
Added Link Here
1
--- cpp2latex/main.cpp.orig	Mon Jun 11 14:14:19 2001
2
+++ cpp2latex/main.cpp	Tue Nov 26 19:32:41 2002
3
@@ -25,6 +25,14 @@
4
 #include <fstream>
5
 #include <vector>
6
 
7
+using std::cerr;
8
+using std::cout;
9
+using std::endl;
10
+using std::getline;
11
+using std::ifstream;
12
+using std::string;
13
+using std::vector;
14
+
15
 struct replace{
16
 	string voraus;
17
 	string ersetzt;
18
@@ -87,8 +95,8 @@
19
 	cerr<<"  Skipping "<<skip<<" lines."<<endl;
20
 	for(int i=0; i<skip; i++)
21
 	{
22
-	char* tmp;
23
-		file.gets( &tmp );
24
+	string line;
25
+		getline( file, line );
26
 	}
27
 
28
 	// Tabspace setzen

Return to bug 45765