]> git.lyx.org Git - lyx.git/blobdiff - src/errorlist.h
Continue to improve GtkLengthEntry
[lyx.git] / src / errorlist.h
index e9023f2203f213355181a2208ff51272f7840f3f..bd9bd1e330a2d136bb258b62ea81157ca06ac173 100644 (file)
 #ifndef ERRORLIST_H
 #define ERRORLIST_H
 
-#include "LString.h"
+#include "support/types.h"
 
 #include <vector>
+#include <string>
 
 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<ErrorItem>
 {
-public:        
+public:
        ErrorList() : std::vector<ErrorItem> () {};
 
        using std::vector<ErrorItem>::push_back;
@@ -45,6 +48,4 @@ public:
        using std::vector<ErrorItem>::const_iterator;
 };
 
-
-
 #endif