diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 18:04:18 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 18:04:18 +0000 |
commit | 495427773173469adc66188ce6fd30f0a72e9830 (patch) | |
tree | 67187c2875951b3bae396929ad801bf8a2a38803 /tikzit/src/common | |
parent | 6e8e84cdcb300092f93479d50e62479c83f1ac49 (diff) |
Fix NSMapTable init call
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@386 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common')
-rw-r--r-- | tikzit/src/common/Graph.h | 2 | ||||
-rw-r--r-- | tikzit/src/common/Graph.m | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tikzit/src/common/Graph.h b/tikzit/src/common/Graph.h index d9b4a3c..e629464 100644 --- a/tikzit/src/common/Graph.h +++ b/tikzit/src/common/Graph.h @@ -49,8 +49,6 @@ BOOL dirty; // keep track of when inEdges and outEdges need an update NSMutableArray *nodes; NSMutableArray *edges; -// NSSet *nodesCache; -// NSSet *edgesCache; NSMapTable *inEdges; NSMapTable *outEdges; diff --git a/tikzit/src/common/Graph.m b/tikzit/src/common/Graph.m index 63476f3..e83a99c 100644 --- a/tikzit/src/common/Graph.m +++ b/tikzit/src/common/Graph.m @@ -44,8 +44,8 @@ if (dirty) { [inEdges release]; [outEdges release]; - inEdges = [[NSMapTable alloc] init]; - outEdges = [[NSMapTable alloc] init]; + inEdges = [[NSMapTable alloc] initWithKeyOptions:NSMapTableStrongMemory valueOptions:NSMapTableStrongMemory capacity:10]; + outEdges = [[NSMapTable alloc] initWithKeyOptions:NSMapTableStrongMemory valueOptions:NSMapTableStrongMemory capacity:10]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |