diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-03-08 18:22:22 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-03-08 18:22:22 +0000 |
commit | 0cd05a572e48b1e649ecdc8b24920c497e40466e (patch) | |
tree | 3f6e2aa5543c809fc7727e070c5e7ae11f3eaa3e /tikzit/src/common/GraphChange.m | |
parent | d26e56e2fd57da2dadddf760b2984956f7daa069 (diff) |
Fix how copying is implemented
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@419 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/GraphChange.m')
-rw-r--r-- | tikzit/src/common/GraphChange.m | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/tikzit/src/common/GraphChange.m b/tikzit/src/common/GraphChange.m index 7375150..9707a19 100644 --- a/tikzit/src/common/GraphChange.m +++ b/tikzit/src/common/GraphChange.m @@ -40,41 +40,12 @@ @synthesize shiftPoint, horizontal; @synthesize affectedEdges, affectedNodes; @synthesize edgeRef, nodeRef; - -// For some reason, gcc screws up the typing for these -// properties when we use @synthesize, so instead we -// define them manually. -- (Node*) nwNode { return nwNode; } -- (void) setNwNode:(Node*)e { - Node *cp = [e copy]; - [nwNode release]; - nwNode = cp; -} -- (Node*) oldNode { return oldNode; } -- (void) setOldNode:(Node*)e { - Node *cp = [e copy]; - [oldNode release]; - oldNode = cp; -} -- (Edge*) nwEdge { return nwEdge; } -- (void) setNwEdge:(Edge*)e { - Edge *cp = [e copy]; - [nwEdge release]; - nwEdge = cp; -} -- (Edge*) oldEdge { return oldEdge; } -- (void) setOldEdge:(Edge*)e { - Edge *cp = [e copy]; - [oldEdge release]; - oldEdge = cp; -} +@synthesize nwNode, oldNode; +@synthesize nwEdge, oldEdge; @synthesize oldNodeTable, nwNodeTable; @synthesize oldEdgeTable, nwEdgeTable; - @synthesize oldBoundingBox, nwBoundingBox; - @synthesize oldGraphData, nwGraphData; - @synthesize oldNodeOrder, newNodeOrder; @synthesize oldEdgeOrder, newEdgeOrder; |