mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Use make_intrusive/make_shared for smart pointer construction.
This commit is contained in:
@@ -76,7 +76,7 @@ void OptionalScript::initDependencies(Context& ctx, const Dependency& dep) const
|
||||
}
|
||||
|
||||
Script& OptionalScript::getMutableScript() {
|
||||
if (!script) script = intrusive(new Script());
|
||||
if (!script) script = make_intrusive<Script>();
|
||||
return *script;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user