From 304f9aca651b7dcc67ed12c91a38a263caff1557 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 31 May 2005 04:31:29 +0000 Subject: [PATCH] When we initialize an instance of SALOME_InteractiveObject from SALOMEDS_SObject we should use GetName method, instead of Name. "Name" method is not supported and depricated --- src/SalomeApp/SalomeApp_SelectionMgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_SelectionMgr.cxx b/src/SalomeApp/SalomeApp_SelectionMgr.cxx index 4394a254f..029323342 100644 --- a/src/SalomeApp/SalomeApp_SelectionMgr.cxx +++ b/src/SalomeApp/SalomeApp_SelectionMgr.cxx @@ -74,7 +74,7 @@ void SalomeApp_SelectionMgr::selectedObjects( SALOME_ListIO& lst ) const _PTR(SComponent) aFC (anObj->GetFatherComponent()); if ( aFC ) { - anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->Name().c_str() ); + anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->GetName().c_str() ); if ( anIO ) lst.Append( anIO ); } } @@ -88,7 +88,7 @@ void SalomeApp_SelectionMgr::selectedObjects( SALOME_ListIO& lst ) const _PTR(SComponent) aFC (anObj->GetFatherComponent()); if ( aFC ) { - anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->Name().c_str() ); + anIO = new SALOME_InteractiveObject( anObj->GetID().c_str(), aFC->ComponentDataType().c_str(), anObj->GetName().c_str() ); if ( anIO ) lst.Append( anIO ); } } -- 2.39.2