comparison Plugins/Samples/DatabasePlugin/Database.cpp @ 1847:559956d5ceb2

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2015 15:34:14 +0100
parents f4286d99ee0a
children b1291df2f780
comparison
equal deleted inserted replaced
1846:3dcf5c0734c9 1847:559956d5ceb2
121 std::string remainingPublicId_; 121 std::string remainingPublicId_;
122 OrthancPluginResourceType remainingType_; 122 OrthancPluginResourceType remainingType_;
123 123
124 public: 124 public:
125 SignalRemainingAncestor() : 125 SignalRemainingAncestor() :
126 hasRemainingAncestor_(false) 126 hasRemainingAncestor_(false),
127 remainingType_(OrthancPluginResourceType_Instance) // Some dummy value
127 { 128 {
128 } 129 }
129 130
130 void Reset() 131 void Reset()
131 { 132 {
173 174
174 175
175 176
176 Database::Database(const std::string& path) : 177 Database::Database(const std::string& path) :
177 path_(path), 178 path_(path),
178 base_(db_) 179 base_(db_),
180 signalRemainingAncestor_(NULL)
179 { 181 {
180 } 182 }
181 183
182 184
183 void Database::Open() 185 void Database::Open()
379 template <typename I> 381 template <typename I>
380 static void ConvertList(std::list<int32_t>& target, 382 static void ConvertList(std::list<int32_t>& target,
381 const std::list<I>& source) 383 const std::list<I>& source)
382 { 384 {
383 for (typename std::list<I>::const_iterator 385 for (typename std::list<I>::const_iterator
384 it = source.begin(); it != source.end(); it++) 386 it = source.begin(); it != source.end(); ++it)
385 { 387 {
386 target.push_back(*it); 388 target.push_back(*it);
387 } 389 }
388 } 390 }
389 391