comparison UnitTestsSources/MemoryCacheTests.cpp @ 1654:3727a09e7b53

fix some icc warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Sep 2015 15:03:35 +0200
parents 9f66a12eb8fc
children b1291df2f780
comparison
equal deleted inserted replaced
1653:0c86b30bb8b2 1654:3727a09e7b53
188 virtual ~Integer() 188 virtual ~Integer()
189 { 189 {
190 LOG(INFO) << "Removing cache entry for " << value_; 190 LOG(INFO) << "Removing cache entry for " << value_;
191 log_ += boost::lexical_cast<std::string>(value_) + " "; 191 log_ += boost::lexical_cast<std::string>(value_) + " ";
192 } 192 }
193
194 int GetValue() const
195 {
196 return value_;
197 }
198 }; 193 };
199 194
200 class IntegerProvider : public Orthanc::ICachePageProvider 195 class IntegerProvider : public Orthanc::ICachePageProvider
201 { 196 {
202 public: 197 public:
233 228
234 229
235 230
236 231
237 232
238
239
240 namespace 233 namespace
241 { 234 {
242 class S : public Orthanc::IDynamicObject 235 class S : public Orthanc::IDynamicObject
243 { 236 {
244 private: 237 private:
250 } 243 }
251 244
252 const std::string& GetValue() const 245 const std::string& GetValue() const
253 { 246 {
254 return value_; 247 return value_;
255 }
256
257 static const std::string& Access(const Orthanc::IDynamicObject& obj)
258 {
259 return dynamic_cast<const S&>(obj).GetValue();
260 } 248 }
261 }; 249 };
262 } 250 }
263 251
264 252