aboutsummaryrefslogtreecommitdiffstats
path: root/src/compile.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-04 23:21:09 +0000
committerDavid Robillard <d@drobilla.net>2010-12-04 23:21:09 +0000
commit8905a0e25858a047e0844c55ed8a025153ab25d9 (patch)
tree1ba8ae460e27d3c8f91db2178073e56ec1534dd5 /src/compile.cpp
parent1f488a7bd89d4cef07bd41ab22a290b0e230172d (diff)
downloadresp-8905a0e25858a047e0844c55ed8a025153ab25d9.tar.gz
resp-8905a0e25858a047e0844c55ed8a025153ab25d9.tar.bz2
resp-8905a0e25858a047e0844c55ed8a025153ab25d9.zip
More const-correctness (remove all use of const_cast).
git-svn-id: http://svn.drobilla.net/resp/resp@297 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/compile.cpp')
-rw-r--r--src/compile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile.cpp b/src/compile.cpp
index 142fa0a..4ac7dfc 100644
--- a/src/compile.cpp
+++ b/src/compile.cpp
@@ -115,11 +115,11 @@ compile_def(CEnv& cenv, const ATuple* def) throw()
static CVal
compile_cons(CEnv& cenv, const ATuple* cons) throw()
{
- AType* type = new AType(const_cast<ASymbol*>(cons->head()->as_symbol()), NULL, Cursor());
+ AType* type = new AType(cons->head()->as_symbol(), NULL, Cursor());
TList tlist(type);
vector<CVal> fields;
for (ATuple::const_iterator i = cons->iter_at(1); i != cons->end(); ++i) {
- tlist.push_back(const_cast<AType*>(cenv.type(*i)));
+ tlist.push_back(cenv.type(*i));
fields.push_back(resp_compile(cenv, *i));
}
return cenv.engine()->compileTup(cenv, type, resp_compile(cenv, type), fields);