]> git.lyx.org Git - features.git/commitdiff
'fix' stupid compiler warnings
authorAndré Pönitz <poenitz@gmx.net>
Wed, 16 Jul 2003 14:20:43 +0000 (14:20 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 16 Jul 2003 14:20:43 +0000 (14:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7291 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C
src/mathed/math_cursor.C
src/mathed/math_cursor.h
src/mathed/math_parser.C

index aed61cef26bf68abd0f5b5d151d8cc6f320e855c..99a653c03ca7a0ee1cd7051a665a282275a2684c 100644 (file)
@@ -510,7 +510,7 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
        }
 
        case LFUN_PASTE: {
-               int n = 0;
+               size_t n = 0;
                istringstream is(cmd.argument.c_str());
                is >> n;
                if (was_macro)
index a8c143af4c74daf3b0c4e407b165a4fac2c4d188..86ce84ce17377dffb6c704356ffea5e72847abde 100644 (file)
@@ -581,7 +581,7 @@ void MathCursor::selDel()
 }
 
 
-void MathCursor::selPaste(int n)
+void MathCursor::selPaste(size_t n)
 {
        dump("selPaste");
        selClearOrDel();
index 08a019d0ae927beda9f40190d38415c99de48e9e..e3f35b6578531cf25df51b901545b663d0b82aeb 100644 (file)
@@ -152,7 +152,7 @@ public:
        ///
        void selDel();
        /// pastes n-th element of cut buffer
-       void selPaste(int n);
+       void selPaste(size_t n);
        ///
        void selHandle(bool);
        ///
index cc098d3ec68fd190a1fc7e124ebd60452e4e099f..9ef17d6d3286e0db2d35c0bfa5c81c5281422e51 100644 (file)
@@ -151,21 +151,21 @@ void catInit()
        fill(theCatcode + 'a', theCatcode + 'z' + 1, catLetter);
        fill(theCatcode + 'A', theCatcode + 'Z' + 1, catLetter);
 
-       theCatcode['\\'] = catEscape;
-       theCatcode['{']  = catBegin;
-       theCatcode['}']  = catEnd;
-       theCatcode['$']  = catMath;
-       theCatcode['&']  = catAlign;
-       theCatcode['\n'] = catNewline;
-       theCatcode['#']  = catParameter;
-       theCatcode['^']  = catSuper;
-       theCatcode['_']  = catSub;
-       theCatcode['\7f'] = catIgnore;
-       theCatcode[' ']  = catSpace;
-       theCatcode['\t'] = catSpace;
-       theCatcode['\r'] = catNewline;
-       theCatcode['~']  = catActive;
-       theCatcode['%']  = catComment;
+       theCatcode[int('\\')] = catEscape;
+       theCatcode[int('{')]  = catBegin;
+       theCatcode[int('}')]  = catEnd;
+       theCatcode[int('$')]  = catMath;
+       theCatcode[int('&')]  = catAlign;
+       theCatcode[int('\n')] = catNewline;
+       theCatcode[int('#')]  = catParameter;
+       theCatcode[int('^')]  = catSuper;
+       theCatcode[int('_')]  = catSub;
+       theCatcode[int('\7f')] = catIgnore;
+       theCatcode[int(' ')]  = catSpace;
+       theCatcode[int('\t')] = catSpace;
+       theCatcode[int('\r')] = catNewline;
+       theCatcode[int('~')]  = catActive;
+       theCatcode[int('%')]  = catComment;
 }