X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FErrorList.cpp;h=9b6fe240d261d238188f8401b61f6ce0140fe9c2;hb=2de30c62f8d671a8c8d4d52a6a7310e2c5ca84de;hp=be395cbd2ebaca4e48b44273654bcf2573aebb45;hpb=b89cc942eb458284f40f4d4e7db58890c3288979;p=lyx.git diff --git a/src/ErrorList.cpp b/src/ErrorList.cpp index be395cbd2e..9b6fe240d2 100644 --- a/src/ErrorList.cpp +++ b/src/ErrorList.cpp @@ -18,14 +18,21 @@ namespace lyx { ErrorItem::ErrorItem(docstring const & error_, docstring const & description_, - int par_id_, pos_type pos_start_, pos_type pos_end_) - : error(error_), description(description_), par_id(par_id_), - pos_start(pos_start_), pos_end(pos_end_) + 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) + : start(TexRow::text_none), end(TexRow::text_none) {}