Gui: Use getObject<T>() helpers in classes
This commit is generated using regex based find and replace: ``` s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/ s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/ ``` To regenerate if needed.
This commit is contained in:
@@ -199,7 +199,7 @@ bool ViewProviderFemAnalysis::setEdit(int ModNum)
|
||||
// Gui::Control().showDialog(padDlg);
|
||||
// else
|
||||
|
||||
// Fem::FemAnalysis* pcAna = static_cast<Fem::FemAnalysis*>(this->getObject());
|
||||
// Fem::FemAnalysis* pcAna = this->getObject<Fem::FemAnalysis>();
|
||||
// Gui::Control().showDialog(new TaskDlgAnalysis(pcAna));
|
||||
// return true;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user