commit d9847302359b7f6d5ca02b97b3b323d7f6bc3df7
Author: Pavel Sanda <[email protected]>
Date: Wed Nov 16 21:23:01 2022 +0100
Drop C++17 if init-statements to support older compilers.
---
src/insets/InsetIndex.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index d72527a..54757a7 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -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).
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;
// 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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs