From 3ced9bbd34f242cf388a9261fec78be682e6f2dc Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 21 Aug 2013 19:12:49 +0200 Subject: [PATCH] TestMeshComponentMap: improve constness. --- Tests/AssemblerLib/TestMeshComponentMap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/AssemblerLib/TestMeshComponentMap.cpp b/Tests/AssemblerLib/TestMeshComponentMap.cpp index d639ac3fcac..6b42d5f3da8 100644 --- a/Tests/AssemblerLib/TestMeshComponentMap.cpp +++ b/Tests/AssemblerLib/TestMeshComponentMap.cpp @@ -54,7 +54,7 @@ class AssemblerLibMeshComponentMapTest : public ::testing::Test static std::size_t const comp0_id = 0; static std::size_t const comp1_id = 1; std::vector<MeshLib::MeshSubsets*> components; - MeshComponentMap* cmap; + MeshComponentMap const* cmap; // // Functions used for checking. @@ -86,7 +86,7 @@ TEST_F(AssemblerLibMeshComponentMapTest, CheckOrderByComponent) ASSERT_EQ(mesh_size + 1 + i, giAtNodeForComponent(i, comp1_id)); // Test component ids of the node. - std::vector<std::size_t> vecCompIDs = cmap->getComponentIDs( + std::vector<std::size_t> const vecCompIDs = cmap->getComponentIDs( Location(mesh->getID(), MeshItemType::Node, i)); ASSERT_EQ(2u, vecCompIDs.size()); ASSERT_EQ(0u, vecCompIDs[0]); @@ -112,7 +112,7 @@ TEST_F(AssemblerLibMeshComponentMapTest, CheckOrderByLocation) ASSERT_EQ(2 * i + 1, giAtNodeForComponent(i, comp1_id)); // Test component ids of the node. - std::vector<std::size_t> vecCompIDs = cmap->getComponentIDs( + std::vector<std::size_t> const vecCompIDs = cmap->getComponentIDs( Location(mesh->getID(), MeshItemType::Node, i)); ASSERT_EQ(2u, vecCompIDs.size()); ASSERT_EQ(0u, vecCompIDs[0]); -- GitLab