Mercurial > hg > orthanc
changeset 2031:a6e8e2251304
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 20 Jun 2016 16:03:26 +0200 |
parents | b4da986c82bb (current diff) df9c1738d92e (diff) |
children | 65b1ce7cb84f |
files | |
diffstat | 4 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp Mon Jun 20 16:03:07 2016 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Mon Jun 20 16:03:26 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()));
--- a/OrthancServer/SliceOrdering.h Mon Jun 20 16:03:07 2016 +0200 +++ b/OrthancServer/SliceOrdering.h Mon Jun 20 16:03:26 2016 +0200 @@ -42,7 +42,7 @@ typedef float Vector[3]; struct Instance; - struct PositionComparator; + class PositionComparator; ServerIndex& index_; std::string seriesId_;
--- a/Plugins/Engine/OrthancPlugins.cpp Mon Jun 20 16:03:07 2016 +0200 +++ b/Plugins/Engine/OrthancPlugins.cpp Mon Jun 20 16:03:26 2016 +0200 @@ -1811,7 +1811,7 @@ client.SetClientCertificate(certificate, key, password); } - client.SetPkcs11Enabled(p.pkcs11); + client.SetPkcs11Enabled(p.pkcs11 ? true : false); for (uint32_t i = 0; i < p.headersCount; i++) { @@ -2463,7 +2463,7 @@ const _OrthancPluginStorageAreaCreate& p = *reinterpret_cast<const _OrthancPluginStorageAreaCreate*>(parameters); IStorageArea& storage = *reinterpret_cast<IStorageArea*>(p.storageArea); - storage.Create(p.uuid, p.content, p.size, Plugins::Convert(p.type)); + storage.Create(p.uuid, p.content, static_cast<size_t>(p.size), Plugins::Convert(p.type)); return true; }