Mercurial > hg > orthanc-stone
changeset 1479:5e3cfe87a873
SortedFrames::Clear()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Jun 2020 16:18:53 +0200 |
parents | fab6c6e795a3 |
children | 4de884c95cd8 |
files | Framework/Toolbox/SortedFrames.cpp Framework/Toolbox/SortedFrames.h |
diffstat | 2 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Toolbox/SortedFrames.cpp Thu Jun 18 16:01:00 2020 +0200 +++ b/Framework/Toolbox/SortedFrames.cpp Thu Jun 18 16:18:53 2020 +0200 @@ -123,13 +123,18 @@ } - SortedFrames::~SortedFrames() + void SortedFrames::Clear() { for (size_t i = 0; i < instances_.size(); i++) { assert(instances_[i] != NULL); delete instances_[i]; } + + studyInstanceUid_.clear(); + seriesInstanceUid_.clear(); + frames_.clear(); + sorted_ = true; }