mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-29 10:50:35 +05:00
Avoid compilation problem because of using standard libraries
This commit is contained in:
parent
2983b6f7f8
commit
b9b1bc96aa
@ -768,7 +768,7 @@ bool GroupGUI_GroupDlg::execute( ObjectList& objects )
|
|||||||
SalomeApp_Study* study = getStudy();
|
SalomeApp_Study* study = getStudy();
|
||||||
if ( study ) {
|
if ( study ) {
|
||||||
char* objIOR = GEOMBase::GetIORFromObject( aGroup );
|
char* objIOR = GEOMBase::GetIORFromObject( aGroup );
|
||||||
string IOR( objIOR );
|
std::string IOR( objIOR );
|
||||||
free( objIOR );
|
free( objIOR );
|
||||||
if ( IOR != "" ) {
|
if ( IOR != "" ) {
|
||||||
_PTR(SObject) SO ( study->studyDS()->FindObjectIOR( IOR ) );
|
_PTR(SObject) SO ( study->studyDS()->FindObjectIOR( IOR ) );
|
||||||
|
@ -470,7 +470,7 @@ void RepairGUI_GlueDlg::clearShapeBufferLocal( GEOM::GEOM_Object_ptr theObj )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
_PTR(Study) aStudy = getStudy()->studyDS();
|
_PTR(Study) aStudy = getStudy()->studyDS();
|
||||||
_PTR(SObject) aSObj ( aStudy->FindObjectIOR( string( IOR.in() ) ) );
|
_PTR(SObject) aSObj ( aStudy->FindObjectIOR( std::string( IOR.in() ) ) );
|
||||||
if ( !aSObj )
|
if ( !aSObj )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -727,12 +727,12 @@ void RepairGUI_GlueDlg::ClickOnCancel()
|
|||||||
// Function : getEntry
|
// Function : getEntry
|
||||||
// Purpose :
|
// Purpose :
|
||||||
//================================================================
|
//================================================================
|
||||||
static string getEntry( GEOM::GEOM_Object_ptr object )
|
static std::string getEntry( GEOM::GEOM_Object_ptr object )
|
||||||
{
|
{
|
||||||
SUIT_Session* session = SUIT_Session::session();
|
SUIT_Session* session = SUIT_Session::session();
|
||||||
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
|
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
|
||||||
if ( app ) {
|
if ( app ) {
|
||||||
string IOR = app->orb()->object_to_string( object );
|
std::string IOR = app->orb()->object_to_string( object );
|
||||||
if ( IOR != "" ) {
|
if ( IOR != "" ) {
|
||||||
SalomeApp_Study* study = ( SalomeApp_Study* )app->activeStudy();
|
SalomeApp_Study* study = ( SalomeApp_Study* )app->activeStudy();
|
||||||
_PTR(SObject) SO ( study->studyDS()->FindObjectIOR( IOR ) );
|
_PTR(SObject) SO ( study->studyDS()->FindObjectIOR( IOR ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user