'fix' stupid compiler warnings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7291 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-07-16 14:20:43 +00:00
parent 31b0364c2d
commit a105cf94a9
4 changed files with 18 additions and 18 deletions

View 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)

View File

@ -581,7 +581,7 @@ void MathCursor::selDel()
}
void MathCursor::selPaste(int n)
void MathCursor::selPaste(size_t n)
{
dump("selPaste");
selClearOrDel();

View 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);
///

View 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[''] = 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('')] = catIgnore;
theCatcode[int(' ')] = catSpace;
theCatcode[int('\t')] = catSpace;
theCatcode[int('\r')] = catNewline;
theCatcode[int('~')] = catActive;
theCatcode[int('%')] = catComment;
}