comparison Plugin/Cache/CacheScheduler.cpp @ 197:0ef2d8b970ab

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 23 Apr 2018 11:42:31 +0200
parents 993dd140bd30
children 2f27287c047c
comparison
equal deleted inserted replaced
196:b83fe581f6ae 197:0ef2d8b970ab
32 { 32 {
33 private: 33 private:
34 std::string value_; 34 std::string value_;
35 35
36 public: 36 public:
37 DynamicString(const std::string& value) : value_(value) 37 explicit DynamicString(const std::string& value) : value_(value)
38 { 38 {
39 } 39 }
40 40
41 const std::string& GetValue() const 41 const std::string& GetValue() const
42 { 42 {
51 boost::mutex mutex_; 51 boost::mutex mutex_;
52 Orthanc::SharedMessageQueue queue_; 52 Orthanc::SharedMessageQueue queue_;
53 std::set<std::string> content_; 53 std::set<std::string> content_;
54 54
55 public: 55 public:
56 PrefetchQueue(size_t maxSize) : queue_(maxSize) 56 explicit PrefetchQueue(size_t maxSize) : queue_(maxSize)
57 { 57 {
58 queue_.SetLifoPolicy(); 58 queue_.SetLifoPolicy();
59 } 59 }
60 60
61 void Enqueue(const std::string& item) 61 void Enqueue(const std::string& item)
303 303
304 304
305 CacheScheduler::~CacheScheduler() 305 CacheScheduler::~CacheScheduler()
306 { 306 {
307 for (BundleSchedulers::iterator it = bundles_.begin(); 307 for (BundleSchedulers::iterator it = bundles_.begin();
308 it != bundles_.end(); it++) 308 it != bundles_.end(); ++it)
309 { 309 {
310 delete it->second; 310 delete it->second;
311 } 311 }
312 } 312 }
313 313