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:
@@ -92,7 +92,7 @@ void NewSetWindow::done() {
|
||||
try {
|
||||
if (!stylesheet_list->hasSelection()) return;
|
||||
StyleSheetP stylesheet = stylesheet_list->getSelection<StyleSheet>();
|
||||
set = intrusive(new Set(stylesheet));
|
||||
set = make_intrusive<Set>(stylesheet);
|
||||
set->validate();
|
||||
EndModal(wxID_OK);
|
||||
} catch (const Error& e) {
|
||||
|
||||
Reference in New Issue
Block a user