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
+1 -1
View File
@@ -511,7 +511,7 @@ ScriptValueP ScriptClosure::simplify() {
}
ScriptValueP ScriptClosure::do_eval(Context& ctx, bool openScope) const {
scoped_ptr<LocalScope> scope(openScope ? new LocalScope(ctx) : nullptr);
unique_ptr<LocalScope> scope = openScope ? make_unique<LocalScope>(ctx) : nullptr;
applyBindings(ctx);
return fun->eval(ctx, openScope);
}