diff --git a/src/UnitTests/Containers/Multimaps/MultimapTest.cpp b/src/UnitTests/Containers/Multimaps/MultimapTest.cpp index b0ff7cf81605a06518b803a9d6fa2bc0e194a672..4612c1dd3709efcc470fee9b70e0d3a359b6a693 100644 --- a/src/UnitTests/Containers/Multimaps/MultimapTest.cpp +++ b/src/UnitTests/Containers/Multimaps/MultimapTest.cpp @@ -42,7 +42,7 @@ TEST( MultimapTest, TestSettingSizes ) for( IndexType i = 0; i < inputs; i++ ) { auto values = map.getValues( i ); - const auto constValues = ( (const MultimapType) map ).getValues( i ); + const auto constValues = ( (const MultimapType&) map ).getValues( i ); // uninitialized should be equal to the value from the allocation vector ASSERT_EQ( values.getSize(), allocationRanges[ i ] ); @@ -81,7 +81,7 @@ TEST( MultimapTest, TestSettingValues ) for( IndexType i = 0; i < inputs; i++ ) { auto values = map.getValues( i ); - const auto constValues = ( (const MultimapType) map ).getValues( i ); + const auto constValues = ( (const MultimapType&) map ).getValues( i ); values.setSize( allocatedValues );