Mercurial > hg > orthanc
comparison OrthancCppClient/OrthancConnection.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 |
comparison
equal
deleted
inserted
replaced
491:c56e9480183a | 492:f3d4193c571a |
---|---|
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 Orthanc::IDynamicObject* OrthancConnection::GetFillerItem(size_t index) | 49 Orthanc::IDynamicObject* OrthancConnection::GetFillerItem(size_t index) |
50 { | 50 { |
51 return new Patient(*this, content_[index].asString()); | 51 Json::Value::ArrayIndex tmp = static_cast<Json::Value::ArrayIndex>(index); |
52 return new Patient(*this, content_[tmp].asString()); | |
52 } | 53 } |
53 | 54 |
54 Patient& OrthancConnection::GetPatient(unsigned int index) | 55 Patient& OrthancConnection::GetPatient(unsigned int index) |
55 { | 56 { |
56 return dynamic_cast<Patient&>(patients_.GetItem(index)); | 57 return dynamic_cast<Patient&>(patients_.GetItem(index)); |