This should fix a few type-conversion warnings.

This commit is contained in:
Thibaut Cuvelier 2020-12-05 22:51:56 +01:00
parent 88bc81d782
commit 0c5e10f36b

View File

@ -347,7 +347,7 @@ void makeParagraph(
special_case = true; special_case = true;
} }
auto nInsets = std::distance(par->insetList().begin(), par->insetList().end()); size_t nInsets = std::distance(par->insetList().begin(), par->insetList().end());
auto parSize = (size_t) par->size(); auto parSize = (size_t) par->size();
// Plain layouts must be ignored. // Plain layouts must be ignored.
@ -381,6 +381,7 @@ void makeParagraph(
auto isFlexSpecialCase = [](InsetList::Element inset) { auto isFlexSpecialCase = [](InsetList::Element inset) {
if (inset.inset->lyxCode() != FLEX_CODE) if (inset.inset->lyxCode() != FLEX_CODE)
return false; return false;
// Standard condition: check the parameter. // Standard condition: check the parameter.
if (inset.inset->getLayout().docbooknotinpara()) if (inset.inset->getLayout().docbooknotinpara())
return true; return true;
@ -393,7 +394,7 @@ void makeParagraph(
}; };
if (InsetText * text = inset.inset->asInsetText()) { if (InsetText * text = inset.inset->asInsetText()) {
for (auto const & par : text->paragraphs()) { for (auto const & par : text->paragraphs()) {
auto nInsets = std::distance(par.insetList().begin(), par.insetList().end()); size_t nInsets = std::distance(par.insetList().begin(), par.insetList().end());
auto parSize = (size_t) par.size(); auto parSize = (size_t) par.size();
if (nInsets == 1 && par.insetList().begin()->inset->lyxCode() == BIBITEM_CODE) if (nInsets == 1 && par.insetList().begin()->inset->lyxCode() == BIBITEM_CODE)