From 264eee2fd9a9fd123c9aa38b03240c462df210d9 Mon Sep 17 00:00:00 2001 From: Peter Clifton Date: Thu, 3 Jan 2013 16:56:00 +0000 Subject: [PATCH] find.c: Use SetThing, rather than open-coding assignments to thing_* I'm trying to identify all uses of SetThing and similar consructs, so I can eventually kill them. --- src/find.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/find.c b/src/find.c index d10499de5a..e63572ea24 100644 --- a/src/find.c +++ b/src/find.c @@ -3480,10 +3480,8 @@ drc_callback (DataType *data, LayerType *layer, PolygonType *polygon, PinType *pin = (PinType *) ptr2; PadType *pad = (PadType *) ptr2; - thing_type = type; - thing_ptr1 = ptr1; - thing_ptr2 = ptr2; - thing_ptr3 = ptr2; + SetThing (type, ptr1, ptr2, ptr2); + switch (type) { case LINE_TYPE: -- 2.11.4.GIT