X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ferrorlist.h;h=8c91c42e32a3a3018ce1c6c15506e45b441bf210;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=1e5f7a9b325787128ba23cde406d3bebf0106d28;hpb=0d43ba149a41e8860dde316ccbd4336d6b0bbdfa;p=lyx.git diff --git a/src/errorlist.h b/src/errorlist.h index 1e5f7a9b32..8c91c42e32 100644 --- a/src/errorlist.h +++ b/src/errorlist.h @@ -12,22 +12,26 @@ #ifndef ERRORLIST_H #define ERRORLIST_H -#include "support/types.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; - 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); + pos_type pos_start; + pos_type pos_end; + ErrorItem(docstring const & error, docstring const & description, + int parid, pos_type posstart, pos_type posend); ErrorItem(); }; @@ -47,4 +51,7 @@ public: using std::vector::const_iterator; }; + +} // namespace lyx + #endif