[Adapdev-commits] Adapdev/src/Adapdev.NVelocity/IO VelocityWriter.cs,1.5,1.6
Status: Beta
Brought to you by:
intesar66
From: Sean M. <int...@us...> - 2005-11-26 08:09:34
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.NVelocity/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18792/src/Adapdev.NVelocity/IO Modified Files: VelocityWriter.cs Log Message: Cleaned up several warnings Restored some lingering files Index: VelocityWriter.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.NVelocity/IO/VelocityWriter.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** VelocityWriter.cs 16 Nov 2005 07:01:49 -0000 1.5 --- VelocityWriter.cs 26 Nov 2005 08:09:22 -0000 1.6 *************** *** 51,55 **** private static int defaultCharBufferSize = 8*1024; ! private Boolean flushed = false; /** --- 51,55 ---- private static int defaultCharBufferSize = 8*1024; ! private bool flushed = false; /** *************** *** 136,142 **** if (bufferSize == 0) return; ! flushed = true; if (nextChar == 0) return; writer.Write(cb, 0, nextChar); nextChar = 0; --- 136,145 ---- if (bufferSize == 0) return; ! ! this.flushed = true; ! if (nextChar == 0) return; + writer.Write(cb, 0, nextChar); nextChar = 0; |