aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-01-26 13:23:18 +1100
committernyamatongwe <devnull@localhost>2013-01-26 13:23:18 +1100
commit6e72ebeabe39b7ac2d1b131dae75b6f58aa46ffd (patch)
tree95e5fdb1cae40af9099419aae3480385ab0f1bf1
parent9b97947003e35389fb1a36cb230712a59cb8fd0b (diff)
downloadscintilla-mirror-6e72ebeabe39b7ac2d1b131dae75b6f58aa46ffd.tar.gz
Fixed unused value warning.
-rw-r--r--src/CellBuffer.cxx3
1 files changed, 1 insertions, 2 deletions
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++;