]> git.lyx.org Git - features.git/blobdiff - src/buffer_funcs.cpp
more use of support::FileName.
[features.git] / src / buffer_funcs.cpp
index c29fe0543906a9275af3aa1a81cb2396c9a243a6..7aab6ba0e06476e7feb56a16650be8c95f521d12 100644 (file)
 #include "insets/InsetInclude.h"
 
 #include "support/filetools.h"
-#include "support/fs_extras.h"
 #include "support/lyxlib.h"
 
-#include <boost/bind.hpp>
-
 using std::min;
 using std::string;
 
@@ -216,19 +213,16 @@ depth_type getItemDepth(ParIterator const & it)
                Paragraph & prev_par = *prev_it;
                depth_type const prev_depth = getDepth(prev_it);
                if (labeltype == prev_par.layout()->labeltype) {
-                       if (prev_depth < min_depth) {
+                       if (prev_depth < min_depth)
                                return prev_par.itemdepth + 1;
-                       }
-                       else if (prev_depth == min_depth) {
+                       if (prev_depth == min_depth)
                                return prev_par.itemdepth;
-                       }
                }
                min_depth = std::min(min_depth, prev_depth);
                // small optimization: if we are at depth 0, we won't
                // find anything else
-               if (prev_depth == 0) {
+               if (prev_depth == 0)
                        return 0;
-               }
        }
 }