Convert DocumentCreateFlags instances to use designated initializer list.
This commit is contained in:
@@ -409,8 +409,9 @@ App::Document* ImportOCAF2::getDocument(App::Document* doc, TDF_Label label)
|
||||
return doc;
|
||||
}
|
||||
|
||||
App::DocumentCreateFlags createFlags;
|
||||
createFlags.createView = false;
|
||||
App::DocumentCreateFlags createFlags {
|
||||
.createView = false
|
||||
};
|
||||
auto newDoc = App::GetApplication().newDocument(name.c_str(), name.c_str(), createFlags);
|
||||
|
||||
std::ostringstream ss;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user