]> git.lyx.org Git - lyx.git/commitdiff
fix compile
authorLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 13 May 2003 23:12:45 +0000 (23:12 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 13 May 2003 23:12:45 +0000 (23:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6959 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlErrorList.C
src/frontends/controllers/ControlErrorList.h

index a56f2fad76e9ea03f394cfd7af74a2cd9c0a64b9..2779675a5a50d4dea36181184233fa814b8c9760 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-14  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * ControlErrorList.C (goTo): use lyxerr not cout.
+
 2003-05-12  Alfredo Braunstein: <abraunst@libero.it>
 
        * ControlErrorList.[Ch]: added
index 35e48ee3e0ec2ce7ef71c2f51fd58bbfb29fd323..f3475bf670ce0cbed0a926bdc32e4ac9c7b36c0d 100644 (file)
 #include "buffer.h"
 #include "BufferView.h"
 #include "lyxtext.h"
+#include "debug.h"
 
 
+using std::endl;
 
-ControlErrorList::ErrorItem::ErrorItem(string const & error, 
-                                      string const & description, 
-                                      int par_id, int pos_start, int pos_end) 
-       : error(error), description(description), par_id(par_id), 
+
+ControlErrorList::ErrorItem::ErrorItem(string const & error,
+                                      string const & description,
+                                      int par_id, int pos_start, int pos_end)
+       : error(error), description(description), par_id(par_id),
          pos_start(pos_start),  pos_end(pos_end)
 {}
 
-ControlErrorList::ControlErrorList(Dialog & d) 
+
+ControlErrorList::ControlErrorList(Dialog & d)
        : Dialog::Controller(d), current_(0)
 {}
 
 
-void ControlErrorList::clearParams() 
+void ControlErrorList::clearParams()
 {
        logfilename_.clear();
        clearErrors();
 }
 
 
-std::vector<ControlErrorList::ErrorItem> const & 
+std::vector<ControlErrorList::ErrorItem> const &
 ControlErrorList::ErrorList() const
 {
        return ErrorList_;
@@ -51,7 +55,7 @@ int ControlErrorList::currentItem() const
 }
 
 
-bool ControlErrorList::initialiseParams(string const &) 
+bool ControlErrorList::initialiseParams(string const &)
 {
        logfilename_ = kernel().buffer()->getLogName().second;
        clearErrors();
@@ -115,7 +119,7 @@ void ControlErrorList::goTo(int item)
        ParagraphList::iterator pit = buf->getParFromID(err.par_id);
 
        if (pit == bv->text->ownerParagraphs().end()) {
-               cout << "par id not found" << endl;
+               lyxerr << "par id not found" << endl;
                return;
        }
 
@@ -124,7 +128,7 @@ void ControlErrorList::goTo(int item)
        if (err.pos_end > pit->size() || range <= 0)
                range = pit->size() - err.pos_start;
 
-       //now make the selection
+       // Now make the selection.
        bv->insetUnlock();
        bv->toggleSelection();
        bv->text->clearSelection();
index 4ce577b37b96da06e8731d0b50f284d93b220f50..8c194a1093450464ba01a0419c9592f55b917a71 100644 (file)
@@ -31,7 +31,7 @@ public:
                int par_id;
                int pos_start;
                int pos_end;
-               ErrorItem(string const &, string const &, int, int, int); 
+               ErrorItem(string const &, string const &, int, int, int);
        };
        ///
        ControlErrorList(Dialog & parent);