mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Use make_intrusive/make_shared for smart pointer construction.
This commit is contained in:
@@ -187,7 +187,7 @@ PrintJobP make_print_job(Window* parent, const SetP& set, const ExportCardSelect
|
||||
return PrintJobP(); // cancel
|
||||
} else {
|
||||
// make print job
|
||||
PrintJobP job = intrusive(new PrintJob(set));
|
||||
PrintJobP job = make_intrusive<PrintJob>(set);
|
||||
job->layout_type = settings.print_layout = space->GetValue() ? LAYOUT_EQUAL_SPACE : LAYOUT_NO_SPACE;
|
||||
job->cards = wnd.getSelection();
|
||||
return job;
|
||||
|
||||
Reference in New Issue
Block a user