X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FInsetList.C;h=22e9273ab6223783af9b0baa739fc8431fe96186;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=cdb9fd471521319890ec1999e5df43fdd8705e11;hpb=e34a1e90af5fd0e5849942341bc12ed5bba991cd;p=lyx.git diff --git a/src/InsetList.C b/src/InsetList.C index cdb9fd4715..22e9273ab6 100644 --- a/src/InsetList.C +++ b/src/InsetList.C @@ -16,12 +16,12 @@ #include "buffer.h" #include "bufferparams.h" #include "BranchList.h" -#include "BufferView.h" #include "debug.h" #include "insets/insetbranch.h" -using lyx::pos_type; + +namespace lyx { using std::endl; using std::lower_bound; @@ -31,7 +31,8 @@ namespace { typedef InsetList::InsetTable Table; -struct InsetTablePosLess : public std::binary_function { +class InsetTablePosLess : public std::binary_function { +public: bool operator()(Table const & t1, Table const & t2) const { return t1.pos < t2.pos; @@ -70,7 +71,7 @@ InsetList::const_iterator InsetList::insetIterator(pos_type pos) const } -void InsetList::insert(InsetBase * inset, lyx::pos_type pos) +void InsetList::insert(InsetBase * inset, pos_type pos) { List::iterator end = list_.end(); List::iterator it = insetIterator(pos); @@ -135,3 +136,6 @@ void InsetList::decreasePosAfterPos(pos_type pos) --it->pos; } } + + +} // namespace lyx