diff --git a/src/FoundationClasses/TKernel/GTests/NCollection_LocalArray_Test.cxx b/src/FoundationClasses/TKernel/GTests/NCollection_LocalArray_Test.cxx index c5de4b0197..fe3f8255a0 100644 --- a/src/FoundationClasses/TKernel/GTests/NCollection_LocalArray_Test.cxx +++ b/src/FoundationClasses/TKernel/GTests/NCollection_LocalArray_Test.cxx @@ -124,20 +124,23 @@ TEST(NCollection_LocalArrayTest, CustomMaxArraySize) } // Test with custom type -struct TestStruct +struct NCollection_LocalArray_TestStruct { int a; double b; - bool operator==(const TestStruct& other) const { return a == other.a && b == other.b; } + bool operator==(const NCollection_LocalArray_TestStruct& other) const + { + return a == other.a && b == other.b; + } }; TEST(NCollection_LocalArrayTest, CustomType) { - NCollection_LocalArray array(5); + NCollection_LocalArray array(5); EXPECT_EQ(5, array.Size()); - TestStruct ts{10, 3.14}; + NCollection_LocalArray_TestStruct ts{10, 3.14}; // Set and retrieve values array[0] = ts;