commit da336cedf3c7a45a9f6ae352d4ffa751ca6aa221 Author: Enrico Forestieri <for...@lyx.org> Date: Sat Jul 11 16:19:21 2020 +0200
Fix compilation on platforms where sizeof(wchar_t) == 2. Use "set" instead of "unordered_set" as some facets are missing when using gcc on cygwin, mingw and, possibly, FreeBSD. --- src/OutputParams.cpp | 2 +- src/OutputParams.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OutputParams.cpp b/src/OutputParams.cpp index 9b84298..465282c 100644 --- a/src/OutputParams.cpp +++ b/src/OutputParams.cpp @@ -34,7 +34,7 @@ OutputParams::OutputParams(Encoding const * enc) dryrun(false), silent(false), pass_thru(false), html_disable_captions(false), html_in_par(false), html_make_pars(true), docbook_in_par(false), docbook_make_pars(true), - docbook_force_pars(false), docbook_anchors_to_ignore(std::unordered_set<docstring>()), docbook_in_float(false), + docbook_force_pars(false), docbook_anchors_to_ignore(std::set<docstring>()), docbook_in_float(false), docbook_in_listing(false), for_toc(false), for_tooltip(false), for_search(false), for_preview(false), includeall(false) { diff --git a/src/OutputParams.h b/src/OutputParams.h index 9b4fdbf..c2e85dc 100644 --- a/src/OutputParams.h +++ b/src/OutputParams.h @@ -16,7 +16,7 @@ #include "Changes.h" #include <memory> -#include <unordered_set> +#include <set> namespace lyx { @@ -361,7 +361,7 @@ public: bool docbook_force_pars; /// Anchors that should not be output (LyX-side identifier, not DocBook-side). - std::unordered_set<docstring> docbook_anchors_to_ignore; + std::set<docstring> docbook_anchors_to_ignore; /// Is the current context a float (such as a table or a figure)? bool docbook_in_float; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs