Mod: Use new addObject<T>(...) using regex

This commit is contained in:
Benjamin Nauck
2025-01-19 01:49:04 +01:00
parent 6d28a19a3e
commit 265b58c034
57 changed files with 125 additions and 159 deletions

View File

@@ -218,7 +218,7 @@ void DocumentTestThread::run()
Base::Console().Message("DocumentTestThread::run()\n");
App::Document* doc = App::GetApplication().getActiveDocument();
DocumentProtector dp(doc);
SandboxObject* obj = static_cast<SandboxObject*>(dp.addObject("Sandbox::SandboxObject"));
SandboxObject* obj = dp.addObject<SandboxObject>();
DocumentObjectProtector op(obj);
App::PropertyString Name;Name.setValue("MyLabel");