Changeset 68ff3de for src


Ignore:
Timestamp:
Jun 1, 2021, 2:22:09 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
1f68d5d
Parents:
93f74c0f
Message:

Removed unnecessary copy in loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/TypeEnvironment.cpp

    r93f74c0f r68ff3de  
    115115
    116116void TypeEnvironment::add( const TypeSubstitution & sub ) {
    117         for ( const auto p : sub ) {
     117        for ( const auto & p : sub ) {
    118118                add( EqvClass{ p.first, p.second } );
    119119        }
Note: See TracChangeset for help on using the changeset viewer.