From db7a6e8db72ea6ee3a94ecc19a2abfafb6cddce1 Mon Sep 17 00:00:00 2001
From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz>
Date: Tue, 9 Apr 2019 14:15:46 +0200
Subject: [PATCH] Fixing Multimap unit test.

---
 src/UnitTests/Containers/Multimaps/MultimapTest.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/UnitTests/Containers/Multimaps/MultimapTest.cpp b/src/UnitTests/Containers/Multimaps/MultimapTest.cpp
index b0ff7cf816..4612c1dd37 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 );
 
-- 
GitLab