From f454bf931bede3625ca53134c53c62e98f7c6b8e Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 26 Oct 2014 13:02:49 -0400 Subject: [PATCH] Whoops. Forgot to add before amending commit. --- src/sgml.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/sgml.cpp b/src/sgml.cpp index 125ef611fa..b193593fab 100644 --- a/src/sgml.cpp +++ b/src/sgml.cpp @@ -26,9 +26,9 @@ #include "support/docstream.h" #include "support/lstrings.h" #include "support/textutils.h" -#include "support/ThreadStorage.h" #include +#include using namespace std; using namespace lyx::support; @@ -137,10 +137,11 @@ docstring sgml::cleanID(Buffer const & buf, OutputParams const & runparams, docstring content; typedef map MangledMap; - static ThreadStorage tMangledNames; - MangledMap & mangledNames = *tMangledNames; - static ThreadStorage tMangleID; - int & mangleID = *tMangleID; + static QThreadStorage tMangledNames; + static QThreadStorage tMangleID; + + MangledMap & mangledNames = tMangledNames.localData(); + int & mangleID = tMangleID.localData(); MangledMap::const_iterator const known = mangledNames.find(orig); if (known != mangledNames.end()) -- 2.39.5