]> git.lyx.org Git - lyx.git/blobdiff - src/errorlist.h
Change the color of the background widget to red.
[lyx.git] / src / errorlist.h
index 20b386c8418b65761cf858d8bcb5ebc48c2f45c9..1e5f7a9b325787128ba23cde406d3bebf0106d28 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef ERRORLIST_H
 #define ERRORLIST_H
 
+#include "support/types.h"
+
 #include <vector>
 #include <string>
 
@@ -22,13 +24,14 @@ struct ErrorItem {
        std::string error;
        std::string description;
        int par_id;
-       int pos_start;
-       int pos_end;
+       lyx::pos_type pos_start;
+       lyx::pos_type pos_end;
        ErrorItem(std::string const & error, std::string const & description,
-                 int parid, int posstart, int posend);
+                 int parid, lyx::pos_type posstart, lyx::pos_type posend);
        ErrorItem();
 };
 
+
 class ErrorList : private std::vector<ErrorItem>
 {
 public:
@@ -44,6 +47,4 @@ public:
        using std::vector<ErrorItem>::const_iterator;
 };
 
-
-
 #endif