comparison Plugin/Cache/CacheManager.cpp @ 157:bcb6d8e0e089

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Nov 2016 14:26:30 +0100
parents 1a90184363f8
children 5dc54316d68b
comparison
equal deleted inserted replaced
156:9e5358dd4dca 157:bcb6d8e0e089
18 **/ 18 **/
19 19
20 20
21 #include "CacheManager.h" 21 #include "CacheManager.h"
22 22
23 #include "../../Orthanc/Core/Toolbox.h" 23 #include "../../Orthanc/Core/SystemToolbox.h"
24 #include "../../Orthanc/Core/SQLite/Transaction.h" 24 #include "../../Orthanc/Core/SQLite/Transaction.h"
25 25
26 #include <boost/lexical_cast.hpp> 26 #include <boost/lexical_cast.hpp>
27 27
28 28
351 bundle.Add(content.size()); 351 bundle.Add(content.size());
352 MakeRoom(bundle, toRemove, bundleIndex, quota); 352 MakeRoom(bundle, toRemove, bundleIndex, quota);
353 353
354 // Store the cached content on the disk 354 // Store the cached content on the disk
355 const char* data = content.size() ? &content[0] : NULL; 355 const char* data = content.size() ? &content[0] : NULL;
356 std::string uuid = Toolbox::GenerateUuid(); 356 std::string uuid = SystemToolbox::GenerateUuid();
357 pimpl_->storage_.Create(uuid, data, content.size(), Orthanc::FileContentType_Unknown); 357 pimpl_->storage_.Create(uuid, data, content.size(), Orthanc::FileContentType_Unknown);
358 358
359 bool ok = true; 359 bool ok = true;
360 360
361 // Remove the previous cached value. This might happen if the same 361 // Remove the previous cached value. This might happen if the same