From c698116cf88a9e48085b5741f10db4f8c48e8fe5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 26 Dec 2010 17:56:27 +0000 Subject: Remove AType copy constructor. git-svn-id: http://svn.drobilla.net/resp/resp@354 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/unify.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/unify.cpp') diff --git a/src/unify.cpp b/src/unify.cpp index ae05b67..48818e9 100644 --- a/src/unify.cpp +++ b/src/unify.cpp @@ -70,9 +70,7 @@ substitute(const AType* tup, const AType* from, const AType* to) TList ret; FOREACHP(AType::const_iterator, i, tup) { if (**i == *from) { - AType* type = new AType(*to); - type->loc = (*i)->loc; - ret.push_back(type); + ret.push_back(new AType(*to, (*i)->loc)); } else if (*i != to) { const AType* elem = (*i)->as_type(); if (elem->kind == AType::EXPR) -- cgit v1.2.1