]> git.lyx.org Git - features.git/blobdiff - src/output_docbook.cpp
Improve error msg.
[features.git] / src / output_docbook.cpp
index e234d9d652b0c5e45f58af7ad29449809f79ff0d..71d3b83f2997812232b8d175a7a674fd5474dc61 100644 (file)
@@ -754,7 +754,7 @@ DocBookDocumentSectioning hasDocumentSectioning(ParagraphList const &paragraphs,
        bool documentHasSections = false;
 
        while (bpit < epit) {
-               LASSERT(bpit < paragraphs.size(), return make_tuple(documentHasSections, bpit));
+               LASSERT(static_cast<size_t>(bpit) < paragraphs.size(), return make_tuple(documentHasSections, bpit));
 
                Layout const &style = paragraphs[bpit].layout();
                documentHasSections |= isLayoutSectioningOrSimilar(style);
@@ -802,7 +802,7 @@ DocBookInfoTag getParagraphsWithInfo(ParagraphList const &paragraphs,
        set<pit_type> abstractWithLayout;
        set<pit_type> abstractNoLayout;
 
-       // Find the first non empty paragraph by mutating bpit.
+       // Find the first nonempty paragraph by mutating bpit.
        while (bpit < epit) {
                Paragraph const &par = paragraphs[bpit];
                if (par.empty() || hasOnlyNotes(par))