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.
This commit is contained in:
Enrico Forestieri 2020-07-11 16:19:21 +02:00
parent b030dc5b8b
commit da336cedf3
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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;