mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
This should fix a few type-conversion warnings.
This commit is contained in:
parent
88bc81d782
commit
0c5e10f36b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user