Mercurial > hg > orthanc
changeset 6326:c648a54cf67c
fix warnings
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 23 Sep 2025 16:13:54 +0200 |
| parents | a80c704e8594 |
| children | 47f3bbac4ed4 |
| files | OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp OrthancServer/UnitTestsSources/ServerConfigTests.cpp |
| diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp Tue Sep 23 16:10:50 2025 +0200 +++ b/OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp Tue Sep 23 16:13:54 2025 +0200 @@ -94,7 +94,7 @@ ASSERT_DOUBLE_EQ(1.0, info.GetRescaleSlope()); ASSERT_DOUBLE_EQ(0.0, info.GetRescaleIntercept()); ASSERT_EQ(PhotometricInterpretation_Monochrome2, info.GetPhotometricInterpretation()); - ASSERT_EQ(0, info.GetWindowsCount()); + ASSERT_EQ(0u, info.GetWindowsCount()); ASSERT_DOUBLE_EQ(14.0, info.ApplyRescale(14.0)); } @@ -108,7 +108,7 @@ ASSERT_DOUBLE_EQ(-1.75, info.GetRescaleIntercept()); ASSERT_EQ(PhotometricInterpretation_Monochrome1, info.GetPhotometricInterpretation()); ASSERT_FALSE(info.HasWindows()); - ASSERT_EQ(0, info.GetWindowsCount()); + ASSERT_EQ(0u, info.GetWindowsCount()); ASSERT_THROW(info.GetWindow(0), OrthancException); ASSERT_DOUBLE_EQ(141.75, info.ApplyRescale(14.0)); }
--- a/OrthancServer/UnitTestsSources/ServerConfigTests.cpp Tue Sep 23 16:10:50 2025 +0200 +++ b/OrthancServer/UnitTestsSources/ServerConfigTests.cpp Tue Sep 23 16:13:54 2025 +0200 @@ -98,7 +98,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_EQ(1, s.size()); + ASSERT_EQ(1u, s.size()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.4") != s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.1.1") == s.end()); } @@ -111,7 +111,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_LE(10, s.size()); + ASSERT_LE(10u, s.size()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.4") != s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.1.1") == s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.2.1") != s.end()); @@ -125,7 +125,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_LE(10, s.size()); + ASSERT_LE(10u, s.size()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.4") != s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.1.1") == s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.2.1") != s.end()); @@ -138,7 +138,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_EQ(1, s.size()); + ASSERT_EQ(1u, s.size()); ASSERT_TRUE(s.find("1.2.3.4") != s.end()); }
