fix errors after review

This commit is contained in:
Viktor UZLOV 2021-02-15 12:08:35 +03:00
parent bd8c0a62a8
commit e0cf4ffd70
4 changed files with 5 additions and 5 deletions

View File

@ -463,7 +463,7 @@ module SMESH
* *
* Can be used to check if the object was created in the same container, as this engine. * Can be used to check if the object was created in the same container, as this engine.
*/ */
smIdType GetObjectId(in Object theObject); long GetObjectId(in Object theObject);
/*! /*!
* \brief Get version of MED format being used. * \brief Get version of MED format being used.

View File

@ -6247,7 +6247,7 @@ int SMESH_Gen_i::RegisterObject(CORBA::Object_ptr theObject)
*/ */
//================================================================================ //================================================================================
SMESH::smIdType SMESH_Gen_i::GetObjectId(CORBA::Object_ptr theObject) CORBA::Long SMESH_Gen_i::GetObjectId(CORBA::Object_ptr theObject)
{ {
if ( myStudyContext && !CORBA::is_nil( theObject )) { if ( myStudyContext && !CORBA::is_nil( theObject )) {
string iorString = GetORB()->object_to_string( theObject ); string iorString = GetORB()->object_to_string( theObject );

View File

@ -71,7 +71,7 @@ public:
// register object in the internal map and return its id // register object in the internal map and return its id
int addObject( const std::string& theIOR ); int addObject( const std::string& theIOR );
// find the object id in the internal map by the IOR // find the object id in the internal map by the IOR
smIdType findId( const std::string& theIOR ); int findId( const std::string& theIOR );
// get object's IOR by id // get object's IOR by id
std::string getIORbyId( const int theId ); std::string getIORbyId( const int theId );
// get object's IOR by old id // get object's IOR by old id
@ -537,7 +537,7 @@ public:
int RegisterObject(CORBA::Object_ptr theObject); int RegisterObject(CORBA::Object_ptr theObject);
// Return id of registered object // Return id of registered object
SMESH::smIdType GetObjectId(CORBA::Object_ptr theObject); CORBA::Long GetObjectId(CORBA::Object_ptr theObject);
// Return an object that previously had an oldID // Return an object that previously had an oldID
template<class TInterface> template<class TInterface>

View File

@ -1537,7 +1537,7 @@ int StudyContext::addObject( const std::string& theIOR )
//purpose : find the object id in the internal map by the IOR //purpose : find the object id in the internal map by the IOR
//======================================================================= //=======================================================================
smIdType StudyContext::findId( const std::string& theIOR ) int StudyContext::findId( const std::string& theIOR )
{ {
TInt2StringMap::iterator imap; TInt2StringMap::iterator imap;
for ( imap = mapIdToIOR.begin(); imap != mapIdToIOR.end(); ++imap ) { for ( imap = mapIdToIOR.begin(); imap != mapIdToIOR.end(); ++imap ) {