Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/StoneInitialization.cpp @ 1640:52b8b96cb55f
cleaning namespaces
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 16:55:22 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/OrthancStone/Sources/StoneInitialization.cpp Tue Nov 10 16:41:11 2020 +0100 +++ b/OrthancStone/Sources/StoneInitialization.cpp Tue Nov 10 16:55:22 2020 +0100 @@ -103,11 +103,11 @@ // been initialized, as Qt changes locale settings { - OrthancStone::Vector v; - if (!OrthancStone::LinearAlgebra::ParseVector(v, "1.3671875\\-1.3671875") || + Vector v; + if (!LinearAlgebra::ParseVector(v, "1.3671875\\-1.3671875") || v.size() != 2 || - !OrthancStone::LinearAlgebra::IsNear(1.3671875f, v[0]) || - !OrthancStone::LinearAlgebra::IsNear(-1.3671875f, v[1])) + !LinearAlgebra::IsNear(1.3671875f, v[0]) || + !LinearAlgebra::IsNear(-1.3671875f, v[1])) { throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "Error in the locale settings, giving up"); @@ -126,12 +126,12 @@ source.FromDicomWeb(dicomweb); std::string s; - OrthancStone::Vector v; + Vector v; if (!source.LookupStringValue(s, Orthanc::DICOM_TAG_PIXEL_SPACING, false) || - !OrthancStone::LinearAlgebra::ParseVector(v, s) || + !LinearAlgebra::ParseVector(v, s) || v.size() != 2 || - !OrthancStone::LinearAlgebra::IsNear(1.2f, v[0]) || - !OrthancStone::LinearAlgebra::IsNear(-1.5f, v[1])) + !LinearAlgebra::IsNear(1.2f, v[0]) || + !LinearAlgebra::IsNear(-1.5f, v[1])) { throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "Error in the locale settings, giving up");