From: Ian Romanick Date: Mon, 15 Mar 2010 21:31:48 +0000 (-0700) Subject: Trivial clean-ups to ast_type_specifier(int) constructor X-Git-Tag: 062012170305~10660^2~625^2~633 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c2bd09888394190e30f89ccd39177caaf0e3353;p=profile%2Fivi%2Fmesa.git Trivial clean-ups to ast_type_specifier(int) constructor --- diff --git a/ast_type.cpp b/ast_type.cpp index 25f28b1..3bfbc64 100644 --- a/ast_type.cpp +++ b/ast_type.cpp @@ -46,6 +46,8 @@ ast_type_specifier::print(void) const } ast_type_specifier::ast_type_specifier(int specifier) + : type_specifier(ast_types(specifier)), type_name(NULL), structure(NULL), + is_array(false), array_size(NULL), precision(ast_precision_high) { static const char *const names[] = { "void", @@ -102,6 +104,5 @@ ast_type_specifier::ast_type_specifier(int specifier) NULL /* ast_type_name */ }; - type_specifier = ast_types(specifier); type_name = names[specifier]; }