Fem: Apply clang-format
This commit is contained in:
@@ -36,8 +36,9 @@ ActiveAnalysisObserver* ActiveAnalysisObserver::inst = nullptr;
|
||||
|
||||
ActiveAnalysisObserver* ActiveAnalysisObserver::instance()
|
||||
{
|
||||
if (!inst)
|
||||
if (!inst) {
|
||||
inst = new ActiveAnalysisObserver();
|
||||
}
|
||||
return inst;
|
||||
}
|
||||
|
||||
@@ -51,7 +52,8 @@ void ActiveAnalysisObserver::setActiveObject(Fem::FemAnalysis* fem)
|
||||
activeObject = fem;
|
||||
App::Document* doc = fem->getDocument();
|
||||
activeDocument = Gui::Application::Instance->getDocument(doc);
|
||||
activeView = static_cast<Gui::ViewProviderDocumentObject*>(activeDocument->getViewProvider(activeObject));
|
||||
activeView = static_cast<Gui::ViewProviderDocumentObject*>(
|
||||
activeDocument->getViewProvider(activeObject));
|
||||
attachDocument(doc);
|
||||
}
|
||||
else {
|
||||
@@ -72,8 +74,9 @@ bool ActiveAnalysisObserver::hasActiveObject() const
|
||||
|
||||
void ActiveAnalysisObserver::highlightActiveObject(const Gui::HighlightMode& mode, bool on)
|
||||
{
|
||||
if (activeDocument && activeView)
|
||||
if (activeDocument && activeView) {
|
||||
activeDocument->signalHighlightObject(*activeView, mode, on, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void ActiveAnalysisObserver::slotDeletedDocument(const App::Document& Doc)
|
||||
|
||||
Reference in New Issue
Block a user