]> git.lyx.org Git - lyx.git/blobdiff - src/ErrorList.h
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / src / ErrorList.h
index e58c47d0f043fce7b6283d69794411dae856d7e2..276cd267944dd90d21386c668490deb059bcaa57 100644 (file)
@@ -13,9 +13,9 @@
 #define ERRORLIST_H
 
 #include "support/docstring.h"
+#include "support/types.h"
 
 #include <vector>
-#include <string>
 
 
 namespace lyx {
@@ -30,8 +30,10 @@ public:
        int par_id;
        pos_type pos_start;
        pos_type pos_end;
+       Buffer const * buffer;
        ErrorItem(docstring const & error, docstring const & description,
-                 int parid, pos_type posstart, pos_type posend);
+                 int parid, pos_type posstart, pos_type posend,
+                 Buffer const * buf = 0);
        ErrorItem();
 };
 
@@ -39,7 +41,7 @@ public:
 class ErrorList : private std::vector<ErrorItem>
 {
 public:
-       ErrorList() : std::vector<ErrorItem> () {};
+       ErrorList() : std::vector<ErrorItem> () {}
 
        using std::vector<ErrorItem>::push_back;
        using std::vector<ErrorItem>::end;