Mercurial > hg > orthanc
diff OrthancServer/ParsedDicomFile.cpp @ 2028:d108412411e5
fix msvc warnings
author | sjodogne |
---|---|
date | Mon, 20 Jun 2016 14:07:29 +0200 |
parents | 0ae26237569a |
children | b9bd52c72ba2 |
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp Mon Jun 20 13:48:36 2016 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Mon Jun 20 14:07:29 2016 +0200 @@ -1267,8 +1267,8 @@ ParsedDicomFile* ParsedDicomFile::CreateFromJson(const Json::Value& json, DicomFromJsonFlags flags) { - const bool generateIdentifiers = (flags & DicomFromJsonFlags_GenerateIdentifiers); - const bool decodeDataUriScheme = (flags & DicomFromJsonFlags_DecodeDataUriScheme); + const bool generateIdentifiers = (flags & DicomFromJsonFlags_GenerateIdentifiers) ? true : false; + const bool decodeDataUriScheme = (flags & DicomFromJsonFlags_DecodeDataUriScheme) ? true : false; std::auto_ptr<ParsedDicomFile> result(new ParsedDicomFile(generateIdentifiers)); result->SetEncoding(FromDcmtkBridge::ExtractEncoding(json, Configuration::GetDefaultEncoding()));