Mercurial > hg > orthanc
diff OrthancCppClient/Patient.cpp @ 492:f3d4193c571a
switch to jsoncpp-0.6.0-rc2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Jul 2013 11:19:09 +0200 |
parents | 0cd977e94479 |
children | 7f7a2d174acb |
line wrap: on
line diff
--- a/OrthancCppClient/Patient.cpp Tue Jul 16 16:09:17 2013 +0200 +++ b/OrthancCppClient/Patient.cpp Wed Jul 17 11:19:09 2013 +0200 @@ -50,7 +50,8 @@ Orthanc::IDynamicObject* Patient::GetFillerItem(size_t index) { - return new Study(connection_, patient_["Studies"][index].asString()); + Json::Value::ArrayIndex tmp = static_cast<Json::Value::ArrayIndex>(index); + return new Study(connection_, patient_["Studies"][tmp].asString()); } Patient::Patient(const OrthancConnection& connection,