diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-08 23:53:23 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-08 23:53:23 -0800 |
commit | f891ea5713029484f30bdf12ed56de83162da33f (patch) | |
tree | afe4f288c92eb8a1e3dd11c414ffc1b916f80f5c /function.cpp | |
parent | d3311c81e5b29a7a5d0c6c2d2e74305b4c3b0d1d (diff) |
Fixed named_arguments to be wcstring_list_t instead of al_list
Diffstat (limited to 'function.cpp')
-rw-r--r-- | function.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/function.cpp b/function.cpp index a09cb4a3..8933ebcb 100644 --- a/function.cpp +++ b/function.cpp @@ -173,14 +173,9 @@ void function_add( function_data_t *data, const parser_t &parser ) info->definition_offset = parse_util_lineno( parser.get_buffer(), parser.current_block->tok_pos )-1; info->definition = data->definition; - if( data->named_arguments ) - { - for( size_t i=0; i<al_get_count( data->named_arguments ); i++ ) - { - info->named_arguments.push_back((wchar_t *)al_get( data->named_arguments, i )); - } - } - + if (! data->named_arguments.empty()) { + info->named_arguments.insert(info->named_arguments.end(), data->named_arguments.begin(), data->named_arguments.end()); + } if (data->description) info->description = data->description; |