Replace scoped_ptr by unique_ptr

This commit is contained in:
Twan van Laarhoven
2020-04-25 22:28:32 +02:00
parent b7ed93cd02
commit 37c8641641
6 changed files with 7 additions and 13 deletions
+2 -3
View File
@@ -15,7 +15,6 @@
#include <util/io/package.hpp>
#include <data/field.hpp> // for Set::value
#include <data/keyword.hpp>
#include <boost/scoped_ptr.hpp>
DECLARE_POINTER_TYPE(Card);
DECLARE_POINTER_TYPE(Set);
@@ -132,9 +131,9 @@ class Set : public Packaged {
void reflect_cards (Tag& tag);
/// Object for managing and executing scripts
scoped_ptr<SetScriptManager> script_manager;
unique_ptr<SetScriptManager> script_manager;
/// Object for executing scripts from the thumbnail thread
scoped_ptr<SetScriptContext> thumbnail_script_context;
unique_ptr<SetScriptContext> thumbnail_script_context;
/// Cache of cards ordered by some criterion
map<pair<ScriptValueP,ScriptValueP>,OrderCacheP> order_cache;
map<ScriptValueP,int> filter_cache;