From: eap Date: Fri, 22 Mar 2013 15:22:27 +0000 (+0000) Subject: fix copying from a GenericObj_wrap, namely copying a CORBA object X-Git-Tag: V6_main_FINAL~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c0c2ac88d1a4b6c7cb9d50de6dd6f46f3598bbd;p=modules%2Fkernel.git fix copying from a GenericObj_wrap, namely copying a CORBA object --- diff --git a/src/GenericObj/SALOME_GenericObj_wrap.hxx b/src/GenericObj/SALOME_GenericObj_wrap.hxx index 594f8c7c5..aac560223 100644 --- a/src/GenericObj/SALOME_GenericObj_wrap.hxx +++ b/src/GenericObj/SALOME_GenericObj_wrap.hxx @@ -82,7 +82,7 @@ namespace SALOME : _obj( obj ), _isOwn( true ) {} GenericObj_wrap( const GenericObj_wrap& wrap ) - : _obj( wrap.in() ), _isOwn( wrap._getIsOwn() ) + : _obj( wrap._obj ), _isOwn( wrap._getIsOwn() ) { _register(); } @@ -115,7 +115,7 @@ namespace SALOME GenericObj_wrap& operator=( const GenericObj_wrap& wrap ) { _release(); - _obj = wrap.in(); + _obj = wrap._obj;//wrap.in(); _isOwn = wrap._getIsOwn(); _register(); return *this;