X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_iter.h;h=7dcc62663c62e17ce22f7f1ffc7cccc599cc4416;hb=6f5a5fac30f457df9e5d6a4606af1b0f81de7037;hp=4e95737639c034e9d2c046cd820d8769aa382e9c;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/mathed/math_iter.h b/src/mathed/math_iter.h index 4e95737639..7dcc62663c 100644 --- a/src/mathed/math_iter.h +++ b/src/mathed/math_iter.h @@ -17,8 +17,8 @@ * */ -#ifndef __MATH_ITER__ -#define __MATH_ITER__ +#ifndef MATH_ITER +#define MATH_ITER #ifdef __GNUG__ #pragma interface @@ -46,7 +46,7 @@ class MathedIter { { pos = 0; fcode = 0; - array = NULL; + array = 0; flags = 0; ncols = row = col = 0; } @@ -61,11 +61,11 @@ class MathedIter { /// void goPosAbs(int); /// - int Empty() { return array->last<=1; } + int Empty() { return array->last<= 1; } /// int OK() { return array && (pos < array->last); } /// - int IsFirst() { return (pos==0); } + int IsFirst() { return (pos == 0); } /// byte GetChar(); /// @@ -89,9 +89,9 @@ class MathedIter { /// virtual void Reset(); /// - virtual void Insert(byte, MathedTextCodes c=LM_TC_CONST); + virtual void Insert(byte, MathedTextCodes c= LM_TC_CONST); /// - virtual void Insert(MathedInset*, int t=LM_TC_INSET); + virtual void Insert(MathedInset*, int t= LM_TC_INSET); /// virtual bool Delete(); /// @@ -116,7 +116,7 @@ class MathedIter { LyxArrayBase *GetData() { return array; } /// Copy every object from position p1 to p2 - LyxArrayBase *Copy(int p1=0, int p2=10000); + LyxArrayBase *Copy(int p1= 0, int p2= 10000); /// Delete every object from position p1 to p2 void Clear(); @@ -243,7 +243,7 @@ class MathedXIter: public MathedIter { // Limits auxiliary variables /// Position and max width of a script int sx, sw; - /// true=center, false=left align (default) + /// true= center, false= left align (default) bool limits; /// Type of previous script short s_type; @@ -293,14 +293,14 @@ bool MathedIter::IsScript() inline bool MathedIter::IsTab() { - return (array->bf[pos]==LM_TC_TAB); + return (array->bf[pos] == LM_TC_TAB); } inline bool MathedIter::IsCR() { - return (array->bf[pos]==LM_TC_CR); + return (array->bf[pos] == LM_TC_CR); }