# HG changeset patch # User sjodogne # Date 1466424449 -7200 # Node ID d108412411e514ed198e6f212b05c0cad49f2d95 # Parent d46746607ae012fe683d8a12bd12ea25a26eadae fix msvc warnings diff -r d46746607ae0 -r d108412411e5 OrthancServer/ParsedDicomFile.cpp --- 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 result(new ParsedDicomFile(generateIdentifiers)); result->SetEncoding(FromDcmtkBridge::ExtractEncoding(json, Configuration::GetDefaultEncoding())); diff -r d46746607ae0 -r d108412411e5 OrthancServer/SliceOrdering.h --- a/OrthancServer/SliceOrdering.h Mon Jun 20 13:48:36 2016 +0200 +++ b/OrthancServer/SliceOrdering.h Mon Jun 20 14:07:29 2016 +0200 @@ -42,7 +42,7 @@ typedef float Vector[3]; struct Instance; - struct PositionComparator; + class PositionComparator; ServerIndex& index_; std::string seriesId_; diff -r d46746607ae0 -r d108412411e5 Plugins/Engine/OrthancPlugins.cpp --- a/Plugins/Engine/OrthancPlugins.cpp Mon Jun 20 13:48:36 2016 +0200 +++ b/Plugins/Engine/OrthancPlugins.cpp Mon Jun 20 14:07:29 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(parameters); IStorageArea& storage = *reinterpret_cast(p.storageArea); - storage.Create(p.uuid, p.content, p.size, Plugins::Convert(p.type)); + storage.Create(p.uuid, p.content, static_cast(p.size), Plugins::Convert(p.type)); return true; } diff -r d46746607ae0 -r d108412411e5 Plugins/Engine/OrthancPlugins.h --- a/Plugins/Engine/OrthancPlugins.h Mon Jun 20 13:48:36 2016 +0200 +++ b/Plugins/Engine/OrthancPlugins.h Mon Jun 20 14:07:29 2016 +0200 @@ -76,7 +76,7 @@ public IMoveRequestHandlerFactory { private: - struct PImpl; + class PImpl; boost::shared_ptr pimpl_; class WorklistHandler;