Qt & gcc requirements for 2.4
Pavel Sanda
sanda at lyx.org
Wed Nov 16 17:06:25 UTC 2022
On Wed, Nov 16, 2022 at 05:53:15PM +0100, Jean-Marc Lasgouttes wrote:
> Le 16/11/2022 ?? 14:24, Pavel Sanda a écrit :
> >I am afraid you just tunnelled into year 2020 :)
>
> Good grief. Is this better with my latest commit?
Better, now we have to get rid of C++17 if init-statements :)
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
Pavel
More information about the lyx-devel
mailing list