]> git.lyx.org Git - features.git/commitdiff
* put debug variables into #ifdef 0 block. Good that modern computer
authorStefan Schimanski <sts@lyx.org>
Wed, 30 May 2007 06:58:08 +0000 (06:58 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 30 May 2007 06:58:08 +0000 (06:58 +0000)
  science can enforce good code quality by stopping compilation if
  unused variables are found.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18577 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text2.cpp

index 27b70aabb0646283a283643816b6289af8bbad05..d0b715f609ebf597f2adeb6ea0c551346098d12a 100644 (file)
@@ -991,7 +991,7 @@ bool Text::cursorLeft(Cursor & cur)
                // if on right side of boundary (i.e. not at paragraph end, but line end)
                // -> skip it, i.e. set boundary to true, i.e. go only logically left
                // there are some exceptions to ignore this: lineseps, newlines, spaces
-#ifdef DEBUG
+#if 0
                bool bound = cur.boundary();
                int rowpos = cur.textRow().pos();
                int pos = cur.pos();
@@ -1039,7 +1039,7 @@ bool Text::cursorRight(Cursor & cur)
                
                // next position is left of boundary, 
                // but go to next line for special cases like space, newline, linesep
-#ifdef DEBUG
+#if 0
                int endpos = cur.textRow().endpos();
                int lastpos = cur.lastpos();
                int pos = cur.pos();