X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCompare.cpp;h=68570b85b5fcee49befc572ec5accf9b3e7bd109;hb=28f6c312a95ba6a2f632c7540b8b69f0f2c0ab02;hp=2344f2526daf3c545874ace9f34af510b516c096;hpb=1900eb28343eb004275df21f2157a3727dce6fcf;p=lyx.git diff --git a/src/Compare.cpp b/src/Compare.cpp index 2344f2526d..68570b85b5 100644 --- a/src/Compare.cpp +++ b/src/Compare.cpp @@ -61,10 +61,10 @@ public: : from(from_), to(to_) {} - DocRange(Buffer const * buf) + DocRange(Buffer const * buf) : + from(doc_iterator_begin(buf)), + to(doc_iterator_end(buf)) { - from = doc_iterator_begin(buf); - to = doc_iterator_end(buf); to.backwardPos(); } @@ -422,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(next(ps_.begin(), startpit), - next(ps_.begin(), endpit + 1)); + ParagraphList tmp_pars(lyx::next(ps_.begin(), startpit), + lyx::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