Mercurial > hg > orthanc
comparison Core/Cache/SharedArchive.cpp @ 1386:72184773c62f query-retrieve
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 May 2015 15:09:14 +0200 |
parents | b22ba8c5edbe |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1385:772c8507c68d | 1386:72184773c62f |
---|---|
80 | 80 |
81 | 81 |
82 SharedArchive::~SharedArchive() | 82 SharedArchive::~SharedArchive() |
83 { | 83 { |
84 for (Archive::iterator it = archive_.begin(); | 84 for (Archive::iterator it = archive_.begin(); |
85 it != archive_.end(); it++) | 85 it != archive_.end(); ++it) |
86 { | 86 { |
87 delete it->second; | 87 delete it->second; |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
122 items.clear(); | 122 items.clear(); |
123 | 123 |
124 boost::mutex::scoped_lock lock(mutex_); | 124 boost::mutex::scoped_lock lock(mutex_); |
125 | 125 |
126 for (Archive::const_iterator it = archive_.begin(); | 126 for (Archive::const_iterator it = archive_.begin(); |
127 it != archive_.end(); it++) | 127 it != archive_.end(); ++it) |
128 { | 128 { |
129 items.push_back(it->first); | 129 items.push_back(it->first); |
130 } | 130 } |
131 } | 131 } |
132 } | 132 } |