mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
'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:
parent
31b0364c2d
commit
a105cf94a9
@ -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)
|
||||
|
@ -581,7 +581,7 @@ void MathCursor::selDel()
|
||||
}
|
||||
|
||||
|
||||
void MathCursor::selPaste(int n)
|
||||
void MathCursor::selPaste(size_t n)
|
||||
{
|
||||
dump("selPaste");
|
||||
selClearOrDel();
|
||||
|
@ -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);
|
||||
///
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user