Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4994:2f30aa99c2db
cppcheck
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 03 May 2022 15:30:01 +0200 |
parents | 8fba26292a9f |
children | e25689b5f0a3 |
comparison
equal
deleted
inserted
replaced
4993:8feb00fea93d | 4994:2f30aa99c2db |
---|---|
3386 .SetRequestField(RECONSTRUCT_FILES, RestApiCallDocumentation::Type_Boolean, | 3386 .SetRequestField(RECONSTRUCT_FILES, RestApiCallDocumentation::Type_Boolean, |
3387 "Also reconstruct the files of the resources (e.g: apply IngestTranscoding, StorageCompression). " | 3387 "Also reconstruct the files of the resources (e.g: apply IngestTranscoding, StorageCompression). " |
3388 "'false' by default. (New in Orthanc 1.11.0)", false); | 3388 "'false' by default. (New in Orthanc 1.11.0)", false); |
3389 } | 3389 } |
3390 | 3390 |
3391 bool GetReconstructFilesField(RestApiPostCall& call) | 3391 bool GetReconstructFilesField(const RestApiPostCall& call) |
3392 { | 3392 { |
3393 bool reconstructFiles = false; | 3393 bool reconstructFiles = false; |
3394 Json::Value request; | 3394 Json::Value request; |
3395 | 3395 |
3396 if (call.GetBodySize() > 0 && call.ParseJsonRequest(request) && request.isMember(RECONSTRUCT_FILES)) // allow "" payload to keep backward compatibility | 3396 if (call.GetBodySize() > 0 && call.ParseJsonRequest(request) && request.isMember(RECONSTRUCT_FILES)) // allow "" payload to keep backward compatibility |