]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocModel.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / TocModel.cpp
index d9adf4dcee51f6bfdab411904f1203d089b89f08..2f8fadc5039b8e40e7ab144f3f52272a003856d7 100644 (file)
 
 #include "TocModel.h"
 
-#include "debug.h"
+#include "support/debug.h"
 
 #include <boost/assert.hpp>
+#include <climits>
 
-using std::endl;
-using std::map;
-using std::max;
-using std::min;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
@@ -100,10 +98,8 @@ void TocModel::populate(Toc const & toc)
                toc_map_.insert( TocPair(top_level_item, iter) );
                model_map_[iter] = top_level_item;
 
-               LYXERR(Debug::GUI)
-                       << "Toc: at depth " << iter->depth()
-                       << ", added item " << to_utf8(iter->str())
-                       << endl;
+               LYXERR(Debug::GUI, "Toc: at depth " << iter->depth()
+                       << ", added item " << to_utf8(iter->str()));
 
                populate(iter, end, top_level_item);