mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 10:20:34 +05:00
untabify and
-#ifdef WITHGENERICOBJ
This commit is contained in:
parent
036be279a4
commit
f72c766475
@ -103,9 +103,6 @@ private:
|
|||||||
#define SPACING 6
|
#define SPACING 6
|
||||||
#define MARGIN 11
|
#define MARGIN 11
|
||||||
|
|
||||||
//To disable automatic genericobj management, the following line should be commented.
|
|
||||||
//Otherwise, it should be uncommented. Refer to KERNEL_SRC/src/SALOMEDSImpl/SALOMEDSImpl_AttributeIOR.cxx
|
|
||||||
#define WITHGENERICOBJ
|
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : SMESHGUI_TranslationDlg()
|
// class : SMESHGUI_TranslationDlg()
|
||||||
@ -563,12 +560,10 @@ bool SMESHGUI_TranslationDlg::ClickOnApply()
|
|||||||
if( _PTR(SObject) aSObject = SMESH::ObjectToSObject( mesh ) )
|
if( _PTR(SObject) aSObject = SMESH::ObjectToSObject( mesh ) )
|
||||||
anEntryList.append( aSObject->GetID().c_str() );
|
anEntryList.append( aSObject->GetID().c_str() );
|
||||||
|
|
||||||
#ifdef WITHGENERICOBJ
|
|
||||||
// obj has been published in study. Its refcount has been incremented.
|
// obj has been published in study. Its refcount has been incremented.
|
||||||
// It is safe to decrement its refcount
|
// It is safe to decrement its refcount
|
||||||
// so that it will be destroyed when the entry in study will be removed
|
// so that it will be destroyed when the entry in study will be removed
|
||||||
mesh->UnRegister();
|
mesh->UnRegister();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -579,12 +574,10 @@ bool SMESHGUI_TranslationDlg::ClickOnApply()
|
|||||||
if( _PTR(SObject) aSObject = SMESH::ObjectToSObject( mesh ) )
|
if( _PTR(SObject) aSObject = SMESH::ObjectToSObject( mesh ) )
|
||||||
anEntryList.append( aSObject->GetID().c_str() );
|
anEntryList.append( aSObject->GetID().c_str() );
|
||||||
|
|
||||||
#ifdef WITHGENERICOBJ
|
|
||||||
// obj has been published in study. Its refcount has been incremented.
|
// obj has been published in study. Its refcount has been incremented.
|
||||||
// It is safe to decrement its refcount
|
// It is safe to decrement its refcount
|
||||||
// so that it will be destroyed when the entry in study will be removed
|
// so that it will be destroyed when the entry in study will be removed
|
||||||
mesh->UnRegister();
|
mesh->UnRegister();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user