Procházet zdrojové kódy

2004-08-09 Atsushi Enomoto <[email protected]>

	* CodeGenerator.cs :
	  Don't initialize output more than once. TextWriter is wrapped twice.

svn path=/trunk/mcs/; revision=32088
Atsushi Eno před 21 roky
rodič
revize
1c4f8a680a

+ 5 - 0
mcs/class/System/System.CodeDom.Compiler/ChangeLog

@@ -1,3 +1,8 @@
+2004-08-09  Atsushi Enomoto  <[email protected]>
+
+	* CodeGenerator.cs :
+	  Don't initialize output more than once. TextWriter is wrapped twice.
+
 2004-07-15  Peter Williams  <[email protected]>
 
 	* CodeGenerator.cs: Have the basic generator create line pragmas

+ 0 - 4
mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs

@@ -1008,8 +1008,6 @@ namespace System.CodeDom.Compiler {
 			CodeTypeDeclaration prevType = this.currentType;
 			this.currentType = type;
 
-			InitOutput (output, options);
-
 			foreach (CodeCommentStatement statement in type.Comments)
 				GenerateCommentStatement (statement);
 
@@ -1026,8 +1024,6 @@ namespace System.CodeDom.Compiler {
 			CodeTypeDeclaration prevType = this.currentType;
 			this.currentType = type;
 
-			InitOutput (output, options);
-
 			foreach (CodeCommentStatement statement in type.Comments)
 				GenerateCommentStatement (statement);