Convert DocumentCreateFlags instances to use designated initializer list.

This commit is contained in:
Joao Matos
2025-03-07 20:29:00 +00:00
parent e12dd64d06
commit 1c2ac570f8
4 changed files with 18 additions and 15 deletions

View File

@@ -595,10 +595,10 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
recomputeCopy = true;
clearCopiedObjects();
App::DocumentCreateFlags createFlags;
createFlags.createView = false;
createFlags.temporary = true;
App::DocumentCreateFlags createFlags {
.createView = false,
.temporary = true
};
auto tmpDoc = App::GetApplication().newDocument("_tmp_binder", nullptr, createFlags);
tmpDoc->setUndoMode(0);
auto objs = tmpDoc->copyObject({ obj }, true, true);