comparison Plugins/Samples/ModalityWorklists/Plugin.cpp @ 2236:55843d0139d3

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Dec 2016 14:36:27 +0100
parents 99d151fafab9
children a3a65de1840f
comparison
equal deleted inserted replaced
2235:99d151fafab9 2236:55843d0139d3
99 99
100 if (v.type() != Json::arrayValue || 100 if (v.type() != Json::arrayValue ||
101 v.size() != 1 || 101 v.size() != 1 ||
102 v[0].type() != Json::objectValue) 102 v[0].type() != Json::objectValue)
103 { 103 {
104 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_BadFileFormat); 104 ORTHANC_PLUGINS_THROW_EXCEPTION(BadFileFormat);
105 } 105 }
106 106
107 // Set the ScheduledStationAETitle if none was provided 107 // Set the ScheduledStationAETitle if none was provided
108 if (!v[0].isMember(SCHEDULED_STATION_AETITLE) || 108 if (!v[0].isMember(SCHEDULED_STATION_AETITLE) ||
109 v[0].type() != Json::stringValue || 109 v[0].type() != Json::stringValue ||