comparison OrthancCppClient/OrthancConnection.cpp @ 585:b2357f1f026f

fix types
author jodogne
date Tue, 01 Oct 2013 16:38:14 +0200
parents eaca3d38b2aa
children 9d2592c08919
comparison
equal deleted inserted replaced
583:bf333b2ed95d 585:b2357f1f026f
85 85
86 client_.SetMethod(Orthanc::HttpMethod_Post); 86 client_.SetMethod(Orthanc::HttpMethod_Post);
87 client_.SetUrl(orthancUrl_ + "/instances"); 87 client_.SetUrl(orthancUrl_ + "/instances");
88 88
89 // Copy the DICOM file in the POST body. TODO - Avoid memory copy 89 // Copy the DICOM file in the POST body. TODO - Avoid memory copy
90 client_.AccessPostData().resize(size); 90 client_.AccessPostData().resize(static_cast<size_t>(size));
91 memcpy(&client_.AccessPostData()[0], dicom, size); 91 memcpy(&client_.AccessPostData()[0], dicom, static_cast<size_t>(size));
92 92
93 Json::Value v; 93 Json::Value v;
94 if (!client_.Apply(v)) 94 if (!client_.Apply(v))
95 { 95 {
96 throw OrthancClientException(Orthanc::ErrorCode_NetworkProtocol); 96 throw OrthancClientException(Orthanc::ErrorCode_NetworkProtocol);