X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCompare.cpp;h=048feba4db318639b105529aeefa1fc34a9e546c;hb=d5ed835225d8ec27225cd7bb415e1ac7db41a512;hp=72510e908ba039fb20a4cc52c0393e1bfb0e85a1;hpb=a5a01b6af33c7a7ad1d798098efa7b4df7c3bde5;p=lyx.git diff --git a/src/Compare.cpp b/src/Compare.cpp index 72510e908b..048feba4db 100644 --- a/src/Compare.cpp +++ b/src/Compare.cpp @@ -20,10 +20,9 @@ #include "insets/InsetText.h" #include "support/lassert.h" +#include "support/lyxalgo.h" #include "support/qstring_helpers.h" -#include - using namespace std; using namespace lyx::support; @@ -423,8 +422,8 @@ static void getParagraphList(DocRange const & range, pit_type startpit = range.from.pit(); pit_type endpit = range.to.pit(); ParagraphList const & ps_ = range.text()->paragraphs(); - ParagraphList tmp_pars(boost::next(ps_.begin(), startpit), - boost::next(ps_.begin(), endpit + 1)); + ParagraphList tmp_pars(next(ps_.begin(), startpit), + next(ps_.begin(), endpit + 1)); // Remove the end of the last paragraph; afterwards, remove the // beginning of the first paragraph. Keep this order - there may only