From 4c0c2ac88d1a4b6c7cb9d50de6dd6f46f3598bbd Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 22 Mar 2013 15:22:27 +0000 Subject: [PATCH] fix copying from a GenericObj_wrap, namely copying a CORBA object --- src/GenericObj/SALOME_GenericObj_wrap.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2