mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Drop C++17 if init-statements to support older compilers.
This commit is contained in:
parent
94e7421a0a
commit
d984730235
@ -373,7 +373,8 @@ void InsetIndex::docbook(XMLStream & xs, OutputParams const & runparams) const
|
|||||||
|
|
||||||
// Handle primary, secondary, and tertiary terms (entries, subentries, and subsubentries, for LaTeX).
|
// Handle primary, secondary, and tertiary terms (entries, subentries, and subsubentries, for LaTeX).
|
||||||
vector<docstring> terms;
|
vector<docstring> terms;
|
||||||
if (const vector<docstring> potential_terms = getSubentriesAsText(runparams); !potential_terms.empty()) {
|
const vector<docstring> potential_terms = getSubentriesAsText(runparams);
|
||||||
|
if (!potential_terms.empty()) {
|
||||||
terms = potential_terms;
|
terms = potential_terms;
|
||||||
// The main term is not present in the vector, as it's not a subentry. The main index term is inserted raw in
|
// The main term is not present in the vector, as it's not a subentry. The main index term is inserted raw in
|
||||||
// the index inset. Considering that the user either uses the new or the legacy mechanism, the main term is the
|
// the index inset. Considering that the user either uses the new or the legacy mechanism, the main term is the
|
||||||
|
Loading…
Reference in New Issue
Block a user