]> git.lyx.org Git - lyx.git/commitdiff
Amend 8e0bc01d
authorThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 26 Feb 2024 23:45:10 +0000 (00:45 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 26 Feb 2024 23:45:21 +0000 (00:45 +0100)
std::set::find only appeared in C++20. Rather use std::set::find for compatibility.

src/insets/InsetBibtex.cpp

index 8a2a697648a77e1fcbbf5dcd7f3c18b750829d9d..2e6f7f7fb731d226d7b132ca839a381f22f8f634 100644 (file)
@@ -1220,7 +1220,7 @@ void InsetBibtex::docbook(XMLStream & xs, OutputParams const &) const
                                if (docbookTag == "SPECIFIC") {
                                        delayedTags[match[1]] = match[2];
                                } else {
-                                       if (alreadyOutputDocBookTags.contains(docbookTag)) {
+                                       if (alreadyOutputDocBookTags.find(docbookTag) != alreadyOutputDocBookTags.end()) {
                                                xs << XMLStream::ESCAPE_NONE <<
                                                   from_utf8("<!-- Several similar tags in the reference for ") + from_utf8(docbookTag) +
                                                   from_utf8(". New tag: ") + from_utf8(match[1]) + from_utf8(". Corresponding value: ") +