(svn r25574) -Fix (r25570): Trouble with initialisation order of static members of Layouter and FontCache.

This commit is contained in:
frosch
2013-07-07 12:07:06 +00:00
parent 534d41ad98
commit 33cef43594
2 changed files with 13 additions and 6 deletions

View File

@@ -198,7 +198,7 @@ class Layouter : public AutoDeleteSmallVector<ParagraphLayout::Line *, 4> {
~LineCacheItem() { delete layout; }
};
typedef std::map<LineCacheKey, LineCacheItem> LineCache;
static LineCache linecache;
static LineCache *linecache;
static LineCacheItem &GetCachedParagraphLayout(const char *str, size_t len, const FontState &state);