X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ferrorlist.h;h=8c91c42e32a3a3018ce1c6c15506e45b441bf210;hb=d2574b7d8e2716d3d3aea92df6576bd01c421a6c;hp=20b386c8418b65761cf858d8bcb5ebc48c2f45c9;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/errorlist.h b/src/errorlist.h index 20b386c841..8c91c42e32 100644 --- a/src/errorlist.h +++ b/src/errorlist.h @@ -12,23 +12,30 @@ #ifndef ERRORLIST_H #define ERRORLIST_H +#include "support/docstring.h" + #include #include + +namespace lyx { + class Buffer; /// A class to hold an error item -struct ErrorItem { - std::string error; - std::string description; +class ErrorItem { +public: + docstring error; + docstring description; int par_id; - int pos_start; - int pos_end; - ErrorItem(std::string const & error, std::string const & description, - int parid, int posstart, int posend); + pos_type pos_start; + pos_type pos_end; + ErrorItem(docstring const & error, docstring const & description, + int parid, pos_type posstart, pos_type posend); ErrorItem(); }; + class ErrorList : private std::vector { public: @@ -45,5 +52,6 @@ public: }; +} // namespace lyx #endif