mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Use make_intrusive/make_shared for smart pointer construction.
This commit is contained in:
@@ -54,7 +54,7 @@ class AutoReplace : public IntrusivePtrVirtualBase {
|
||||
String match;
|
||||
String replace;
|
||||
|
||||
inline AutoReplaceP clone() const { return intrusive(new AutoReplace(*this)); }
|
||||
inline AutoReplaceP clone() const { return make_intrusive<AutoReplace>(*this); }
|
||||
|
||||
DECLARE_REFLECTION();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user