diff options
Diffstat (limited to 'cli_ure')
-rw-r--r-- | cli_ure/source/climaker/climaker_emit.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli_ure/source/climaker/climaker_emit.cxx b/cli_ure/source/climaker/climaker_emit.cxx index bfd0b88a05f7..24eb3e455754 100644 --- a/cli_ure/source/climaker/climaker_emit.cxx +++ b/cli_ure/source/climaker/climaker_emit.cxx @@ -723,8 +723,11 @@ Assembly ^ TypeEmitter::type_resolve( gcnew array< ::System::Type^>( vecBaseTypes.size() ); int index = 0; - for (auto i = vecBaseTypes.begin(); i != vecBaseTypes.end(); ++i, ++index) - base_interfaces[ index ] = get_type( *i ); + for (auto const & vecBaseType : vecBaseTypes) + { + base_interfaces[ index ] = get_type( vecBaseType ); + ++index; + } type_builder = m_module_builder->DefineType( cts_name, attr, nullptr, base_interfaces ); } |