aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/declaration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/src/declaration.cpp')
-rw-r--r--c_compiler/src/declaration.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/c_compiler/src/declaration.cpp b/c_compiler/src/declaration.cpp
index eb98480..b151077 100644
--- a/c_compiler/src/declaration.cpp
+++ b/c_compiler/src/declaration.cpp
@@ -85,10 +85,9 @@ void Declaration::linkListDeclaration(Declaration* next_declaration)
next_list_declaration_ = decl_ptr;
}
-void Declaration::setType(Type* type)
+void Declaration::setType(TypePtr type)
{
- TypePtr type_ptr(type);
- type_ = type_ptr;
+ type_ = type;
}
void Declaration::setInitializer(Expression* initializer)