Salome HOME
Merging from V4_1_0_maintainance for porting on Win32 Platform
[modules/kernel.git] / src / GenericObj / SALOME_GenericObj_i.cc
index e5281e72b77a5fb4d4a210b9bdad789df3e660b8..9158f4ed9df26a48d4f2b327b4a2052d78262fcb 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
 //
 //
 //  File   : SALOME_GenericObj_i.cc
@@ -41,7 +41,11 @@ GenericObj_i::GenericObj_i(PortableServer::POA_ptr thePOA): myRefCounter(1){
     MESSAGE("GenericObj_i::GenericObj_i() - this = "<<this<<
            "; CORBA::is_nil(thePOA) = "<<CORBA::is_nil(thePOA));
   if(CORBA::is_nil(thePOA))
-    myPOA = PortableServer::RefCountServantBase::_default_POA();
+#ifndef WIN32
+    myPOA = PortableServer::ServantBase::_default_POA();
+#else
+    myPOA = ServantBase::_default_POA();
+#endif
   else
     myPOA = PortableServer::POA::_duplicate(thePOA);
 }