X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ferrorlist.h;h=bd9bd1e330a2d136bb258b62ea81157ca06ac173;hb=37d42d45f3f4a5d3e916a080af50b37ae4a9d118;hp=e9023f2203f213355181a2208ff51272f7840f3f;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/errorlist.h b/src/errorlist.h index e9023f2203..bd9bd1e330 100644 --- a/src/errorlist.h +++ b/src/errorlist.h @@ -12,27 +12,30 @@ #ifndef ERRORLIST_H #define ERRORLIST_H -#include "LString.h" +#include "support/types.h" #include +#include class Buffer; /// A class to hold an error item -struct ErrorItem { - string error; - string description; +class ErrorItem { +public: + std::string error; + std::string description; int par_id; - int pos_start; - int pos_end; - ErrorItem(string const & error, string const & description, - int parid, int posstart, int posend); + lyx::pos_type pos_start; + lyx::pos_type pos_end; + ErrorItem(std::string const & error, std::string const & description, + int parid, lyx::pos_type posstart, lyx::pos_type posend); ErrorItem(); }; + class ErrorList : private std::vector { -public: +public: ErrorList() : std::vector () {}; using std::vector::push_back; @@ -45,6 +48,4 @@ public: using std::vector::const_iterator; }; - - #endif