Fix type of pos

This commit is contained in:
Guillaume Munch 2016-09-03 23:52:55 +01:00
parent a4c17ac937
commit f1582a2acb
4 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ OutputParams::OutputParams(Encoding const * enc)
inComment(false), inTableCell(NO), inFloat(NONFLOAT),
inIndexEntry(false), inIPA(false), inDeletedInset(0),
changeOfDeletedInset(Change::UNCHANGED),
par_begin(0), par_end(0), lastid(-1), lastpos(-1), isLastPar(false),
par_begin(0), par_end(0), lastid(-1), lastpos(0), isLastPar(false),
dryrun(false), silent(false), pass_thru(false),
html_disable_captions(false), html_in_par(false),
html_make_pars(true), for_toc(false), for_tooltip(false),

View File

@ -238,7 +238,7 @@ public:
mutable int lastid;
/// Last position in the last paragraph before an inset
mutable int lastpos;
mutable pos_type lastpos;
/// is this the last paragraph in the current buffer/inset?
bool isLastPar;

View File

@ -107,7 +107,7 @@ TexRow::RowEntryList & TexRow::currentRow()
//static
RowEntry TexRow::textEntry(int id, int pos)
RowEntry TexRow::textEntry(int id, pos_type pos)
{
RowEntry entry;
entry.is_math = false;
@ -147,13 +147,13 @@ bool TexRow::start(RowEntry entry)
}
bool TexRow::start(int id, int pos)
bool TexRow::start(int id, pos_type pos)
{
return start(textEntry(id,pos));
}
void TexRow::forceStart(int id, int pos)
void TexRow::forceStart(int id, pos_type pos)
{
if (!enabled_)
return;

View File

@ -47,7 +47,7 @@ typedef size_t idx_type;
/// an individual par id/pos <=> row mapping
struct TextEntry { int id; int pos; };
struct TextEntry { int id; pos_type pos; };
/// an individual math id/cell <=> row mapping
struct MathEntry { uid_type id; idx_type cell; };
@ -104,7 +104,7 @@ public:
/// Converts a CursorSlice into a RowEntry
static RowEntry rowEntryFromCursorSlice(CursorSlice const & slice);
/// Encapsulates the paragraph and position for later use
static RowEntry textEntry(int id, int pos);
static RowEntry textEntry(int id, pos_type pos);
/// Encapsulates a cell and position for later use
static RowEntry mathEntry(uid_type id, idx_type cell);
@ -116,7 +116,7 @@ public:
bool start(RowEntry entry);
/// Defines the paragraph and position for the current line
/// returns true if this entry will appear on the current row
bool start(int id, int pos);
bool start(int id, pos_type pos);
/// Defines a cell and position for the current line. Always appear in the
/// current row.
void startMath(uid_type id, idx_type cell);
@ -125,7 +125,7 @@ public:
/// text flow. Note: since the cell idx is not recorded it does not work as
/// well as for math grids; if we were to do that properly we would need to
/// access the id of the parent Tabular inset from the CursorSlice.
void forceStart(int id, int pos);
void forceStart(int id, pos_type pos);
/// Insert node when line is completed
void newline();