diff UnitTestsSources/DicomMapTests.cpp @ 1492:9f66a12eb8fc

fix warnings for gcc 5
author jodogne
date Tue, 04 Aug 2015 14:47:35 +0200
parents b22ba8c5edbe
children d2268c7a7ede
line wrap: on
line diff
--- a/UnitTestsSources/DicomMapTests.cpp	Tue Aug 04 14:14:17 2015 +0200
+++ b/UnitTestsSources/DicomMapTests.cpp	Tue Aug 04 14:47:35 2015 +0200
@@ -87,7 +87,7 @@
 
   DicomMap m;
   m.GetTags(s);
-  ASSERT_EQ(0, s.size());
+  ASSERT_EQ(0u, s.size());
 
   ASSERT_FALSE(m.HasTag(DICOM_TAG_PATIENT_NAME));
   ASSERT_FALSE(m.HasTag(0x0010, 0x0010));
@@ -96,7 +96,7 @@
   ASSERT_TRUE(m.HasTag(0x0010, 0x0010));
 
   m.GetTags(s);
-  ASSERT_EQ(1, s.size());
+  ASSERT_EQ(1u, s.size());
   ASSERT_EQ(DICOM_TAG_PATIENT_NAME, *s.begin());
 
   ASSERT_FALSE(m.HasTag(DICOM_TAG_PATIENT_ID));
@@ -106,13 +106,13 @@
   ASSERT_EQ("PatientID2", m.GetValue(0x0010, 0x0020).AsString());
 
   m.GetTags(s);
-  ASSERT_EQ(2, s.size());
+  ASSERT_EQ(2u, s.size());
 
   m.Remove(DICOM_TAG_PATIENT_ID);
   ASSERT_THROW(m.GetValue(0x0010, 0x0020), OrthancException);
 
   m.GetTags(s);
-  ASSERT_EQ(1, s.size());
+  ASSERT_EQ(1u, s.size());
   ASSERT_EQ(DICOM_TAG_PATIENT_NAME, *s.begin());
 
   std::auto_ptr<DicomMap> mm(m.Clone());