Skip to content

Commit

Permalink
Merge pull request #506 from QIICR/fix-std-vector4
Browse files Browse the repository at this point in the history
COMP: fix compile error
  • Loading branch information
fedorov committed Jun 30, 2024
2 parents 126a203 + 384707d commit f7f8c67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libsrc/Itk2DicomConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ namespace dcmqi {
code_seg.CodeMeaning),"",derimgItem));

OFVector<SourceImageItem*> srcimgItems;
OFVector<DcmDataset*> dcmDatasets_ofvector(dcmDatasets.begin(), dcmDatasets.end());
OFVector<DcmDataset*> dcmDatasets_ofvector;
for (const auto& dataset : dcmDatasets) {
dcmDatasets_ofvector.push_back(dataset);
}
derimgItem->addSourceImageItems(dcmDatasets_ofvector,
CodeSequenceMacro(code_seg.CodeValue,code_seg.CodingSchemeDesignator, code_seg.CodeMeaning), srcimgItems, OFTrue /*skip file errors */);

Expand Down

0 comments on commit f7f8c67

Please sign in to comment.