(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 51f0d11ee3
commit 0c0db5c4c7
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);