}
-int MathCursor::macroNamePos() const
+MathInset::difference_type MathCursor::macroNamePos() const
{
for (MathInset::difference_type i = pos() - 1; i >= 0; --i) {
MathAtom & p = array().at(i);
MathGridInset * MathCursor::enclosingGrid(MathCursor::idx_type & idx) const
{
- for (int i = Cursor_.size() - 1; i >= 0; --i) {
+ for (MathInset::difference_type i = Cursor_.size() - 1; i >= 0; --i) {
MathGridInset * p = Cursor_[i].par_->asGridInset();
if (p) {
idx = Cursor_[i].idx_;
///
string macroName() const;
///
- int macroNamePos() const;
+ MathInset::difference_type macroNamePos() const;
///
void insert(char, MathTextCodes t);
/// can we enter the inset?
<< n << std::endl;
}
str_[0] = '#';
- str_[1] = '0' + static_cast<unsigned char>(n);
+ str_[1] = static_cast<unsigned char>('0' + n);
str_[2] = '\0';
}