X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FErrorList.cpp;h=1613ce7e611259843d920b9c261f4af09d474cff;hb=da7f5393585723cd07b6c7dc41e9e1574151e264;hp=f84d17a3a67ea563946e8c119b01b5372ba44dda;hpb=2e18f6a671a111b30838c48dc86c4783919ebdf6;p=lyx.git diff --git a/src/ErrorList.cpp b/src/ErrorList.cpp index f84d17a3a6..1613ce7e61 100644 --- a/src/ErrorList.cpp +++ b/src/ErrorList.cpp @@ -18,15 +18,21 @@ namespace lyx { ErrorItem::ErrorItem(docstring const & error_, docstring const & description_, - int par_id_, pos_type pos_start_, pos_type pos_end_, - Buffer const * buffer_) - : error(error_), description(description_), par_id(par_id_), - pos_start(pos_start_), pos_end(pos_end_), buffer(buffer_) + TextEntry start_, TextEntry end_, Buffer const * buffer_) + : error(error_), description(description_), start(start_), end(end_), + buffer(buffer_) +{} + + +ErrorItem::ErrorItem(docstring const & error_, docstring const & description_, + Buffer const * buffer_) + : error(error_), description(description_), start(TexRow::text_none), + end(TexRow::text_none), buffer(buffer_) {} ErrorItem::ErrorItem() - : par_id(-1), pos_start(0), pos_end(0), buffer(0) + : start(TexRow::text_none), end(TexRow::text_none), buffer(0) {}