aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-04-05 09:58:04 +1000
committernyamatongwe <devnull@localhost>2011-04-05 09:58:04 +1000
commit826a491dbe23e1816aafcdf3cc46b6c6a374c7f8 (patch)
tree277025e8b8815697ff1c1436e242cdf9f7766eed /src
parentd7daed8ed142004c0b3d82685c05279ec4e34e56 (diff)
downloadscintilla-mirror-826a491dbe23e1816aafcdf3cc46b6c6a374c7f8.tar.gz
Avoid last cppcheck warning in Editor.cxx.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index bc5e80cc9..92d172a8a 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -957,7 +957,9 @@ void Editor::ScrollTo(int line, bool moveThumb) {
int topLineNew = Platform::Clamp(line, 0, MaxScrollPos());
if (topLineNew != topLine) {
// Try to optimise small scrolls
+#ifndef UNDER_CE
int linesToMove = topLine - topLineNew;
+#endif
SetTopLine(topLineNew);
// Optimize by styling the view as this will invalidate any needed area
// which could abort the initial paint if discovered later.