X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDS%2FSALOMEDS_AttributePythonObject_i.cxx;h=ea6c2ff87294c06ecacd8ece585397120dd9881a;hb=8469d4f02c5b4379665d4ec1b07709d3c8411114;hp=5dabe76b3852872849611485f8c8d29942758385;hpb=641929d327319a80b4fc6f6157605a21f46413c4;p=modules%2Fkernel.git diff --git a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx old mode 100755 new mode 100644 index 5dabe76b3..ea6c2ff87 --- a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -31,8 +31,8 @@ void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA: { SALOMEDS::Locker lock; CheckLocked(); - char *aSeq = CORBA::string_dup(theSequence); - dynamic_cast(_impl)->SetObject(aSeq, IsScript); + CORBA::String_var aSeq = CORBA::string_dup(theSequence); + dynamic_cast(_impl)->SetObject(aSeq.in(), IsScript); } char* SALOMEDS_AttributePythonObject_i::GetObject()