From 70b447768bdfb629a38431adbb40e9544102e0b3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 24 Nov 2005 06:50:01 +0000 Subject: Patch from John Ehresman that tracks the number of layouts in use and adds assertions that this is always only 0 or 1. It also sets the length of the cache array if the array shrinks or grows without being reallocated. --- src/Editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 1207425dd..5370f5b2e 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -105,6 +105,7 @@ class LineLayoutCache { LineLayout **cache; bool allInvalidated; int styleClock; + int useCount; void Allocate(int length_); void AllocateForLevel(int linesOnScreen, int linesInDoc); public: -- cgit v1.2.3