X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FErrorList.cpp;h=7022c7bcf50a6ca59f5d41c4d3f2c4b1ade26953;hb=5be391b274f2cbf4a1da03bc5ee2136cb6c4e660;hp=1fc64c7315284f377aef2f17dbb6abb5cd01d17b;hpb=3e3955c4f3ee3302d2e1aae643be37ee3b758512;p=lyx.git diff --git a/src/ErrorList.cpp b/src/ErrorList.cpp index 1fc64c7315..7022c7bcf5 100644 --- a/src/ErrorList.cpp +++ b/src/ErrorList.cpp @@ -12,20 +12,27 @@ #include "ErrorList.h" -using std::string; - +using namespace std; namespace lyx { + +ErrorItem::ErrorItem(docstring const & error_, docstring const & description_, + 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_, - 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_) + 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), buffer(nullptr) {}