Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp @ 5050:ea9e2680da6f
CPP check and cleanup
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 30 Jun 2022 07:15:37 +0200 |
parents | 6fed78e13233 |
children | 9fd4e12efabc |
comparison
equal
deleted
inserted
replaced
5049:8c9a1cce076e | 5050:ea9e2680da6f |
---|---|
569 DcmSequenceOfItems* sequence = dynamic_cast<DcmSequenceOfItems*>(element); | 569 DcmSequenceOfItems* sequence = dynamic_cast<DcmSequenceOfItems*>(element); |
570 | 570 |
571 if (sequence) | 571 if (sequence) |
572 { | 572 { |
573 Json::Value jsonSequence = Json::arrayValue; | 573 Json::Value jsonSequence = Json::arrayValue; |
574 for (unsigned long i = 0; i < sequence->card(); i++) | 574 for (unsigned long s = 0; s < sequence->card(); s++) |
575 { | 575 { |
576 DcmItem* child = sequence->getItem(i); | 576 DcmItem* child = sequence->getItem(s); |
577 Json::Value& v = jsonSequence.append(Json::objectValue); | 577 Json::Value& v = jsonSequence.append(Json::objectValue); |
578 DatasetToJson(v, *child, DicomToJsonFormat_Full, DicomToJsonFlags_Default, | 578 DatasetToJson(v, *child, DicomToJsonFormat_Full, DicomToJsonFlags_Default, |
579 maxStringLength, encoding, hasCodeExtensions, | 579 maxStringLength, encoding, hasCodeExtensions, |
580 ignoreTagLength, 1); | 580 ignoreTagLength, 1); |
581 } | 581 } |