From 6e72ebeabe39b7ac2d1b131dae75b6f58aa46ffd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 Jan 2013 13:23:18 +1100 Subject: Fixed unused value warning. --- src/CellBuffer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 7bb96ca76..872616c21 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -531,9 +531,8 @@ void CellBuffer::ResetLineEnds() { lv.InsertText(lineInsert-1, length); unsigned char chBeforePrev = 0; unsigned char chPrev = 0; - unsigned char ch = ' '; for (int i = 0; i < length; i++) { - ch = substance.ValueAt(position + i); + unsigned char ch = substance.ValueAt(position + i); if (ch == '\r') { InsertLine(lineInsert, (position + i) + 1, atLineStart); lineInsert++; -- cgit v1.2.3