Salome HOME
Fix compilation pb.
[modules/kernel.git] / src / Registry / RegistryConnexion.cxx
index e11f5a2218f15016877378cb954d0ad1c9cc52cf..62f017e15e46b211c9058c939016134a58f5d982 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -26,8 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
-using namespace std;
 # include "Utils_ORB_INIT.hxx"
 # include "RegistryConnexion.hxx"
 # include "SALOME_NamingService.hxx"
@@ -41,6 +39,7 @@ extern "C"
 {
 # include <stdio.h>
 }
+using namespace std;
 
 
 Registry::Components_var Connexion( int argc , char **argv , const char *ptrSessionName ) throw( CommException )
@@ -99,7 +98,11 @@ RegistryConnexion::~RegistryConnexion()
                _VarComponents->remove( _Id ) ;
        }
        _Id   = 0 ;
+#ifndef WNT
        delete [] _Ior;
+#else
+       delete [] (char*) _Ior;
+#endif
        _Ior = 0;
        _SessionName = "";
        _Name = "" ;
@@ -122,7 +125,7 @@ void RegistryConnexion::add( const char *aName )
                infos.pid       = lesInfos.pid() ;
                infos.machine   = CORBA::string_dup( lesInfos.host_char() ) ;
                infos.adip      = CORBA::string_dup( lesInfos.adip() ) ;
-               infos.uid       = lesInfos.uid() ;
+               infos.uid       = (long)lesInfos.uid() ;
                infos.pwname    = CORBA::string_dup( lesInfos.pwname() ) ;
                infos.tc_start  = lesInfos.start() ;
                infos.tc_hello  = 0 ;