fold: add const to foldUpdateIEMSRecurse() vars

This commit is contained in:
Jan Edmund Lazo 2018-08-02 17:51:32 -04:00
parent 21acc7c0fa
commit 6710522751

View File

@ -2105,11 +2105,10 @@ static void foldUpdateIEMS(win_T *const wp, linenr_T top, linenr_T bot)
* Returns bot, which may have been increased for lines that also need to be * Returns bot, which may have been increased for lines that also need to be
* updated as a result of a detected change in the fold. * updated as a result of a detected change in the fold.
*/ */
static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, static linenr_T foldUpdateIEMSRecurse(
linenr_T startlnum, fline_T *flp, garray_T *const gap, const int level, const linenr_T startlnum,
LevelGetter getlevel, fline_T *const flp, LevelGetter getlevel, linenr_T bot,
linenr_T bot, const char topflags // containing fold flags
char topflags /* containing fold flags */
) )
{ {
linenr_T ll; linenr_T ll;
@ -2117,10 +2116,10 @@ static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level,
fold_T *fp2; fold_T *fp2;
int lvl = level; int lvl = level;
linenr_T startlnum2 = startlnum; linenr_T startlnum2 = startlnum;
linenr_T firstlnum = flp->lnum; /* first lnum we got */ const linenr_T firstlnum = flp->lnum; // first lnum we got
int i; int i;
bool finish = false; bool finish = false;
linenr_T linecount = flp->wp->w_buffer->b_ml.ml_line_count - flp->off; const linenr_T linecount = flp->wp->w_buffer->b_ml.ml_line_count - flp->off;
int concat; int concat;
/* /*