X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ferrorlist.h;h=8c91c42e32a3a3018ce1c6c15506e45b441bf210;hb=646c3127406e1ff1c5aaeb71aa5ea49be0ac8b0e;hp=52e79a5ee290f9c81c075a263c669239031be971;hpb=120e59bc97aa77082c8cccbda62c2f4f2cae9be7;p=lyx.git diff --git a/src/errorlist.h b/src/errorlist.h index 52e79a5ee2..8c91c42e32 100644 --- a/src/errorlist.h +++ b/src/errorlist.h @@ -12,25 +12,30 @@ #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(); }; + class ErrorList : private std::vector { public: @@ -47,5 +52,6 @@ public: }; +} // namespace lyx #endif