comparison OrthancFramework/UnitTestsSources/FileStorageTests.cpp @ 4203:4d42408da117

improving const-correctness in ParsedDicomFile
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 15:01:31 +0200
parents bf7b9edf6b81
children d9473bd5ed43
comparison
equal deleted inserted replaced
4202:2007ab69ac16 4203:4d42408da117
96 std::set<std::string> ss; 96 std::set<std::string> ss;
97 s.ListAllFiles(ss); 97 s.ListAllFiles(ss);
98 ASSERT_EQ(10u, ss.size()); 98 ASSERT_EQ(10u, ss.size());
99 99
100 unsigned int c = 0; 100 unsigned int c = 0;
101 for (std::list<std::string>::iterator 101 for (std::list<std::string>::const_iterator
102 i = u.begin(); i != u.end(); i++, c++) 102 i = u.begin(); i != u.end(); ++i, c++)
103 { 103 {
104 ASSERT_TRUE(ss.find(*i) != ss.end()); 104 ASSERT_TRUE(ss.find(*i) != ss.end());
105 if (c < 5) 105 if (c < 5)
106 s.Remove(*i, FileContentType_Unknown); 106 s.Remove(*i, FileContentType_Unknown);
107 } 107 }