diff options
author | David Robillard <d@drobilla.net> | 2010-12-26 17:56:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-26 17:56:27 +0000 |
commit | c698116cf88a9e48085b5741f10db4f8c48e8fe5 (patch) | |
tree | 47da97abac3fe5f8a5db62f1fd1fe72caa5659c5 /src/unify.cpp | |
parent | 1e3f0e31b86b27af0f89bf48281673e6b15ea799 (diff) | |
download | resp-c698116cf88a9e48085b5741f10db4f8c48e8fe5.tar.gz resp-c698116cf88a9e48085b5741f10db4f8c48e8fe5.tar.bz2 resp-c698116cf88a9e48085b5741f10db4f8c48e8fe5.zip |
Remove AType copy constructor.
git-svn-id: http://svn.drobilla.net/resp/resp@354 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/unify.cpp')
-rw-r--r-- | src/unify.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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) |