X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.cpp;h=08f31484fe09e157821cbc0903c7487d0997b99a;hb=4089ff1ec36292a37866c81d844e9ebd6dffd850;hp=12e3400f7c2ee402308bd17f9a81878e596c9a93;hpb=7aa6f972da50cab0588a76bc62a8c3216fa97107;p=lyx.git diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 12e3400f7c..08f31484fe 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2218,8 +2218,8 @@ void Buffer::validate(LaTeXFeatures & features) const if (!features.runparams().is_child) params().validate(features); - for_each(paragraphs().begin(), paragraphs().end(), - bind(&Paragraph::validate, _1, ref(features))); + for (Paragraph const & p : paragraphs()) + p.validate(features); if (lyxerr.debugging(Debug::LATEX)) { features.showStruct();