if ( !_CanceledThread )
_ThreadCpuUsed = CpuUsed_impl() ;
- float cpus=_ThreadCpuUsed/1000.;
+ float cpus=_ThreadCpuUsed/1000.f;
std::cerr << "endService for " << serviceName << " Component instance : " << _instanceName ;
std::cerr << " Cpu Used: " << cpus << " (s) " << std::endl;
MESSAGE("Send EndService notification for " << serviceName
break;
}
}
- catch(const SALOME_Exception &ex)
+ catch(const SALOME_Exception & /*ex*/) //!< TODO: unused variable
{
MESSAGE("[GiveContainer] Exception in ResourceManager find !: " << ex.what());
return ret;
XML_Persistence::createJobFromString(const std::string& jobDump)
{
xmlDocPtr doc;
- doc = xmlReadMemory(jobDump.c_str(), jobDump.length(), "noname.xml", NULL, 0);
+ doc = xmlReadMemory(jobDump.c_str(), (int)jobDump.length(), "noname.xml", NULL, 0); //TODO: conversion from size_t to int, possible loss of data
if (doc == NULL)
{
std::string error = "Error in xmlReadMemory in XML_Persistence::createJobFromString, could not parse string: " + jobDump;
{
listOfResources = _ResManager->GetFittingResources(new_params.resource_params);
}
- catch( const SALOME::SALOME_Exception& ex )
+ catch( const SALOME::SALOME_Exception& /*ex*/ ) //!< TODO: unused variable
{
return Engines::EngineComponent::_nil();
}
{
listOfResources = _ResManager->GetFittingResources(new_params.resource_params);
}
- catch( const SALOME::SALOME_Exception& ex )
+ catch( const SALOME::SALOME_Exception& /*ex*/ ) //!< TODO: unused variable
{
return Engines::EngineComponent::_nil();
}
{
listOfResources = _ResManager->GetFittingResources(new_params.resource_params);
}
- catch( const SALOME::SALOME_Exception& ex )
+ catch( const SALOME::SALOME_Exception& /*ex*/ ) //!< TODO: unused variable
{
return Engines::EngineComponent::_nil();
}
if ( !CORBA::is_nil(connMan) && ( pid != connMan->getPID() ) )
connMan->ShutdownWithExit();
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
// ignore and continue
}
study->Shutdown();
_NS->Destroy_Name("/Study");
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
// ignore and continue
}
catalog->shutdown();
_NS->Destroy_Name("/Kernel/ModulCatalog");
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
// ignore and continue
}
if ( !CORBA::is_nil(dsm) )
dsm->shutdownScopes();
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
// ignore and continue
}
if ( !CORBA::is_nil(dsm) )
dsm->shutdownServers();
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
// ignore and continue
}
launcher->Shutdown();
}
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
// ignore and continue
}
registry->Shutdown();
_NS->Destroy_Name("/Registry");
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
// ignore and continue
}
public:
//constructor w/o parameters
//all messages will be put into terminal via cout
- Logger();
+ Logger();
//constructor with parameter, filename is output file
//all messages will be put into special file passed as parameter
Logger(const char *filename);
- virtual ~Logger();
+ virtual ~Logger();
//put message into one special place for all servers
void putMessage(const char* message);
void ping();
bool m_putIntoFile;
//ofstream class specialized for disk file output
std::ofstream m_outputFile;
-
//synchronisation object
static omni_mutex myLock;
gobj->Register();
}
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
}
}
gobj->UnRegister();
}
}
- catch(const CORBA::Exception& e)
+ catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
{
}
}
int SALOMEDSImpl_AttributeSequenceOfInteger::Length()
{
- return myValue.size();
+ return (int)myValue.size(); //!< TODO: conversion from size_t to int, possible loss of data
}
int SALOMEDSImpl_AttributeSequenceOfInteger::Value(const int Index)
{
int aLength = Length();
char* aResult = new char[aLength * 25];
aResult[0] = 0;
- int aPosition = 0;
+ size_t aPosition = 0;
for (int i = 1; i <= aLength; i++) {
sprintf(aResult + aPosition , "%d ", Value(i));
aPosition += strlen(aResult + aPosition);
int SALOMEDSImpl_AttributeSequenceOfReal::Length()
{
- return myValue.size();
+ return (int)myValue.size(); //!< TODO: conversion from size_t to int, possible loss of data
}
double SALOMEDSImpl_AttributeSequenceOfReal::Value(const int Index)
int aLength = Length();
char* aResult = new char[aLength * 127];
aResult[0] = 0;
- int aPosition = 0;
+ size_t aPosition = 0;
for (int i = 1; i <= aLength; i++) {
sprintf(aResult + aPosition , "%.64e ", Value(i));
aPosition += strlen(aResult + aPosition);
std::vector<std::string> aNames;
std::vector<int> aMinutes, aHours, aDays, aMonths, aYears;
aProp->GetModifications(aNames, aMinutes, aHours, aDays, aMonths, aYears);
- for (int i = 0, len = aNames.size(); i < len; i++) {
+ for (size_t i = 0, len = aNames.size(); i < len; i++) {
myUserName.push_back(aNames[i]);
myMinute.push_back(aMinutes[i]);
myHour.push_back(aHours[i]);
std::vector<int> aMinutes, aHours, aDays, aMonths, aYears;
GetModifications(aNames, aMinutes, aHours, aDays, aMonths, aYears);
- int aLength, anIndex, unitsSize = 0, commentSize = 0;;
+ size_t aLength, anIndex, unitsSize = 0, commentSize = 0;;
for (aLength = 0, anIndex = aNames.size()-1; anIndex >= 0; anIndex--)
aLength += aNames[anIndex].size() + 1;
std::string units = GetUnits();
std::string comment = GetComment();
- int aLength1 = 0;
+ size_t aLength1 = 0;
std::map<std::string, std::string> versions;
versionMap::const_iterator it;
for (aLength1 = 0, it = myComponentVersions.begin(); it != myComponentVersions.end(); ++it ) {
static std::string getUnit(std::string theString)
{
std::string aString(theString);
- int aPos = aString.find(SEPARATOR);
+ size_t aPos = aString.find(SEPARATOR);
if(aPos <= 0 || aPos == aString.size() ) return std::string();
return aString.substr(aPos+1, aString.size());
}
static std::string getTitle(std::string theString)
{
std::string aString(theString);
- int aPos = aString.find(SEPARATOR);
+ size_t aPos = aString.find(SEPARATOR);
if(aPos < 1) return aString;
if(aPos == 0) return std::string();
return aString.substr(0, aPos);
const std::vector<int>& theData)
{
CheckLocked();
- if(theData.size() > myNbColumns) SetNbColumns(theData.size());
+ if(theData.size() > myNbColumns) SetNbColumns((int)theData.size()); //!< TODO: conversion from size_t to const int, possible loss of data
Backup();
myRows.push_back(std::string(""));
}
- int i, aShift = (theRow-1)*myNbColumns, aLength = theData.size();
+ size_t i, aShift = (theRow-1)*myNbColumns, aLength = theData.size();
for(i = 1; i <= aLength; i++) {
myTable[aShift + i] = theData[i-1];
}
void SALOMEDSImpl_AttributeTableOfInteger::SetRowUnits(const std::vector<std::string>& theUnits)
{
if (theUnits.size() != GetNbRows()) throw DFexception("Invalid number of rows");
- int aLength = theUnits.size(), i;
+ size_t aLength = theUnits.size(), i;
for(i = 1; i <= aLength; i++) SetRowUnit(i, theUnits[i-1]);
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfInteger::GetRowUnits()
{
std::vector<std::string> aSeq;
- int aLength = myRows.size(), i;
+ size_t aLength = myRows.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(getUnit(myRows[i]));
return aSeq;
}
void SALOMEDSImpl_AttributeTableOfInteger::SetRowTitles(const std::vector<std::string>& theTitles)
{
if (theTitles.size() != GetNbRows()) throw DFexception("Invalid number of rows");
- int aLength = theTitles.size(), i;
+ size_t aLength = theTitles.size(), i;
for(i = 1; i <= aLength; i++) SetRowTitle(i, theTitles[i-1]);
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfInteger::GetRowTitles()
{
std::vector<std::string> aSeq;
- int aLength = myRows.size(), i;
+ size_t aLength = myRows.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(getTitle(myRows[i]));
return aSeq;
}
Backup();
- int i, aLength = theData.size();
+ size_t i, aLength = theData.size();
for(i = 1; i <= aLength; i++) {
myTable[myNbColumns*(i-1)+theColumn] = theData[i-1];
}
void SALOMEDSImpl_AttributeTableOfInteger::SetColumnTitles(const std::vector<std::string>& theTitles)
{
if (theTitles.size() != myNbColumns) throw DFexception("Invalid number of columns");
- int aLength = theTitles.size(), i;
+ size_t aLength = theTitles.size(), i;
for(i = 0; i < aLength; i++) myCols[i] = theTitles[i];
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfInteger::GetColumnTitles()
{
std::vector<std::string> aSeq;
- int aLength = myCols.size(), i;
+ size_t aLength = myCols.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(myCols[i]);
return aSeq;
}
{
std::string aString;
char* buffer = new char[1024];
- int i, j, l;
+ size_t i, j, l;
//Title
l = myTitle.size();
static std::string getUnit(const std::string& theString)
{
std::string aString(theString);
- int aPos = aString.find(SEPARATOR);
+ size_t aPos = aString.find(SEPARATOR);
return aPos < 0 || aPos == aString.size()-1 ? std::string() : aString.substr(aPos+1, aString.size());
}
static std::string getTitle(const std::string& theString)
{
std::string aString(theString);
- int aPos = aString.find(SEPARATOR);
+ size_t aPos = aString.find(SEPARATOR);
return aPos < 0 ? aString :aString.substr(0, aPos);
}
const std::vector<double>& theData)
{
CheckLocked();
- if(theData.size() > myNbColumns) SetNbColumns(theData.size());
+ if(theData.size() > myNbColumns) SetNbColumns((int)theData.size()); //!< TODO: conversion from size_t to const int, possible loss of data
Backup();
myRows.push_back(std::string(""));
}
- int i, aShift = (theRow-1)*myNbColumns, aLength = theData.size();
+ size_t i, aShift = (theRow-1)*myNbColumns, aLength = theData.size();
for(i = 1; i <= aLength; i++) {
myTable[aShift + i] = theData[i-1];
}
void SALOMEDSImpl_AttributeTableOfReal::SetRowUnits(const std::vector<std::string>& theUnits)
{
if (theUnits.size() != GetNbRows()) throw DFexception("Invalid number of rows");
- int aLength = theUnits.size(), i;
+ size_t aLength = theUnits.size(), i;
for(i = 1; i <= aLength; i++) SetRowUnit(i, theUnits[i-1]);
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfReal::GetRowUnits()
{
std::vector<std::string> aSeq;
- int aLength = myRows.size(), i;
+ size_t aLength = myRows.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(getUnit(myRows[i]));
return aSeq;
}
void SALOMEDSImpl_AttributeTableOfReal::SetRowTitles(const std::vector<std::string>& theTitles)
{
if (theTitles.size() != GetNbRows()) throw DFexception("Invalid number of rows");
- int aLength = theTitles.size(), i;
+ size_t aLength = theTitles.size(), i;
for(i = 1; i <= aLength; i++) SetRowTitle(i, theTitles[i-1]);
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfReal::GetRowTitles()
{
std::vector<std::string> aSeq;
- int aLength = myRows.size(), i;
+ size_t aLength = myRows.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(getTitle(myRows[i]));
return aSeq;
}
Backup();
- int i, aLength = theData.size();
+ size_t i, aLength = theData.size();
for(i = 1; i <= aLength; i++) {
myTable[myNbColumns*(i-1)+theColumn] = theData[i-1];
}
void SALOMEDSImpl_AttributeTableOfReal::SetColumnTitles(const std::vector<std::string>& theTitles)
{
if (theTitles.size() != myNbColumns) throw DFexception("Invalid number of columns");
- int aLength = theTitles.size(), i;
+ size_t aLength = theTitles.size(), i;
for(i = 0; i < aLength; i++) myCols[i] = theTitles[i];
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfReal::GetColumnTitles()
{
std::vector<std::string> aSeq;
- int aLength = myCols.size(), i;
+ size_t aLength = myCols.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(myCols[i]);
return aSeq;
}
{
std::string aString;
char* buffer = new char[1024];
- int i, j, l;
+ size_t i, j, l;
//Title
l = myTitle.size();
static std::string getUnit(std::string theString)
{
std::string aString(theString);
- int aPos = aString.find(SEPARATOR);
+ size_t aPos = aString.find(SEPARATOR);
if(aPos <= 0 || aPos == aString.size() ) return std::string();
return aString.substr(aPos+1, aString.size());
}
static std::string getTitle(std::string theString)
{
std::string aString(theString);
- int aPos = aString.find(SEPARATOR);
+ size_t aPos = aString.find(SEPARATOR);
if(aPos < 1) return aString;
if(aPos == 0) return std::string();
return aString.substr(0, aPos);
void SALOMEDSImpl_AttributeTableOfString::SetRowUnits(const std::vector<std::string>& theUnits)
{
if (theUnits.size() != GetNbRows()) throw DFexception("Invalid number of rows");
- int aLength = theUnits.size(), i;
+ size_t aLength = theUnits.size(), i;
for(i = 1; i <= aLength; i++) SetRowUnit(i, theUnits[i-1]);
}
std::vector<std::string> SALOMEDSImpl_AttributeTableOfString::GetRowUnits()
{
std::vector<std::string> aSeq;
- int aLength = myRows.size(), i;
+ size_t aLength = myRows.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(getUnit(myRows[i]));
return aSeq;
}
void SALOMEDSImpl_AttributeTableOfString::SetRowTitles(const std::vector<std::string>& theTitles)
{
if (theTitles.size() != GetNbRows()) throw DFexception("Invalid number of rows");
- int aLength = theTitles.size(), i;
+ size_t aLength = theTitles.size(), i;
for(i = 1; i <= aLength; i++) SetRowTitle(i, theTitles[i-1]);
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfString::GetRowTitles()
{
std::vector<std::string> aSeq;
- int aLength = myRows.size(), i;
+ size_t aLength = myRows.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(getTitle(myRows[i]));
return aSeq;
}
const std::vector<std::string>& theData)
{
CheckLocked();
- if(theData.size() > myNbColumns) SetNbColumns(theData.size());
+ if(theData.size() > myNbColumns) SetNbColumns((int)theData.size()); //!< TODO: conversion from size_t to const int, possible loss of data
Backup();
myRows.push_back(std::string(""));
}
- int i, aShift = (theRow-1)*myNbColumns, aLength = theData.size();
+ size_t i, aShift = (theRow-1)*myNbColumns, aLength = theData.size();
for(i = 1; i <= aLength; i++) {
myTable[aShift + i] = theData[i-1];
}
Backup();
- int i, aLength = theData.size();
+ size_t i, aLength = theData.size();
for(i = 1; i <= aLength; i++) {
myTable[myNbColumns*(i-1)+theColumn] = theData[i-1];
}
void SALOMEDSImpl_AttributeTableOfString::SetColumnTitles(const std::vector<std::string>& theTitles)
{
if (theTitles.size() != myNbColumns) throw DFexception("Invalid number of columns");
- int aLength = theTitles.size(), i;
+ size_t aLength = theTitles.size(), i;
for(i = 0; i < aLength; i++) myCols[i] = theTitles[i];
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
std::vector<std::string> SALOMEDSImpl_AttributeTableOfString::GetColumnTitles()
{
std::vector<std::string> aSeq;
- int aLength = myCols.size(), i;
+ size_t aLength = myCols.size(), i;
for(i=0; i<aLength; i++) aSeq.push_back(myCols[i]);
return aSeq;
}
{
std::string aString;
char* buffer = new char[1024];
- int i, j, l;
+ size_t i, j, l;
//Title
l = myTitle.size();
if (p->second.size()) { // check empty string in the value table
sprintf(buffer, "%d\n", p->first);
aString += buffer;
- unsigned long aValueSize = p->second.size();
+ unsigned long aValueSize = (unsigned long)p->second.size(); //!< TODO conversion from size_t to unsigned long, possible loss of data
sprintf(buffer, "%ld\n", aValueSize);
aString +=buffer;
aString += p->second;
hasModuleData = true;
unsigned char* aStreamFile = NULL;
- int aStreamSize = 0;
+ size_t aStreamSize = 0;
if (hdf_sco_group->ExistInternalObject("FILE_STREAM")) {
HDFdataset *hdf_dataset = new HDFdataset("FILE_STREAM", hdf_sco_group);
hdf_dataset->OpenOnDisk();
- aStreamSize = hdf_dataset->GetSize();
+ aStreamSize = (size_t)hdf_dataset->GetSize();
aStreamFile = new unsigned char[aStreamSize];
if(aStreamFile == NULL) throw HDFexception("Unable to open dataset FILE_STREAM");
hdf_dataset->ReadFromDisk(aStreamFile);
{
std::string aDirName = theDirectory;
- int i, aLength = theFiles.size();
+ size_t i, aLength = theFiles.size();
for(i=1; i<=aLength; i++) {
std::string aFile(aDirName);
aFile += theFiles[i-1];
//============================================================================
std::string SALOMEDSImpl_Tool::GetNameFromPath(const std::string& thePath) {
if (thePath.empty()) return "";
- int pos = thePath.rfind('/');
+ size_t pos = thePath.rfind('/');
if(pos >= 0) return thePath.substr(pos+1, thePath.size());
pos = thePath.rfind('\\');
if(pos >= 0) return thePath.substr(pos+1, thePath.size());
std::string path;
if (!thePath.empty()) {
- int pos = thePath.rfind('/');
+ size_t pos = thePath.rfind('/');
if (pos < 0) pos = thePath.rfind('\\');
if (pos < 0) pos = thePath.rfind('|');
{
std::vector<std::string> vs;
if(theValue[0] == separator && theValue.size() == 1) return vs;
- int pos = theValue.find(separator);
+ size_t pos = theValue.find(separator);
if(pos < 0) {
vs.push_back(theValue);
return vs;
std::vector<std::string> treatRepetation(const std::string& theValue)
{
std::vector<std::string> aResult;
- int pos = theValue.find(";*=");
+ size_t pos = theValue.find(";*=");
if(pos < 0 )
{
aResult.push_back(theValue);
{
std::vector<std::string> aResult;
if(theValue[0] == sep ) aResult.push_back(std::string());
- int pos = theValue.find(sep);
+ size_t pos = theValue.find(sep);
if(pos < 0 ) {
if(sep == '|')
{
std::vector< std::vector<std::string> > aResult;
if(theValue.size() > 0) {
std::vector<std::string> aSections = splitStringWithEmpty( theValue, sep1 );
- for( int i = 0, n = aSections.size(); i < n; i++ )
+ for( size_t i = 0, n = aSections.size(); i < n; i++ )
aResult.push_back( splitStringWithEmpty( aSections[i], sep2 ) );
}
return aResult;
{
id=poa->activate_object(this);
}
- catch(PortableServer::POA::ServantAlreadyActive& e)
+ catch(PortableServer::POA::ServantAlreadyActive& /*e*/) //!< TODO: unused variables
{
id=poa->servant_to_id(this);
}
{
SALOME::StringVec *ret(new SALOME::StringVec);
std::size_t sz(_vars.size());
- ret->length(sz);
+ ret->length((_CORBA_ULong)sz); //!< TODO: size_t to _CORBA_ULong
std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > >::iterator it(_vars.begin());
for(std::size_t i=0;i<sz;it++,i++)
{
BasicDataServer *obj((*it).second);
std::string name(obj->getVarNameCpp());
- (*ret)[i]=CORBA::string_dup(name.c_str());
+ (*ret)[(_CORBA_ULong)i]=CORBA::string_dup(name.c_str()); //!< TODO: size_t to _CORBA_ULong
}
return ret;
}
}
Py_ssize_t sz(PyList_Size(keys));
SALOME::SeqOfByteVec *ret(new SALOME::SeqOfByteVec);
- ret->length(sz);
+ ret->length((_CORBA_ULong)sz); //!< TODO: convert Py_ssize_t in _CORBA_ULong
for(Py_ssize_t i=0;i<sz;i++)
{
PyObject *item(PyList_GetItem(keys,i));
Py_XINCREF(item);
std::string pickel(varc->pickelize(item));//item consumed
- PickelizedPyObjServer::FromCppToByteSeq(pickel,(*ret)[i]);
+ PickelizedPyObjServer::FromCppToByteSeq(pickel,(*ret)[(_CORBA_ULong)i]); //!< TODO: convert Py_ssize_t in _CORBA_ULong
}
Py_XDECREF(keys);
return ret;
Transaction *elt(0);
try
{
- eltBase=_poa->reference_to_servant(transactions[i]);
+ eltBase=_poa->reference_to_servant(transactions[(_CORBA_ULong)i]); //!< TODO: size_t to _CORBA_ULong
elt=dynamic_cast<Transaction *>(eltBase);
}
catch(...)
std::vector<std::string> scopes(listOfScopesCpp());
SALOME::StringVec *ret(new SALOME::StringVec);
std::size_t sz(scopes.size());
- ret->length(sz);
+ ret->length((_CORBA_ULong)sz); //!< TODO: size_t to _CORBA_ULong
for(std::size_t i=0;i<sz;i++)
- (*ret)[i]=CORBA::string_dup(scopes[i].c_str());
+ (*ret)[(_CORBA_ULong)i]=CORBA::string_dup(scopes[i].c_str()); //!< TODO: size_t to _CORBA_ULong
return ret;
}
//
SALOME::StringVec *ret(new SALOME::StringVec);
sz=retCpp.size();
- ret->length(sz);
+ ret->length((_CORBA_ULong)sz); //!< TODO: size_t to _CORBA_ULong
for(std::size_t i=0;i<sz;i++)
- (*ret)[i]=CORBA::string_dup(retCpp[i].c_str());
+ (*ret)[(_CORBA_ULong)i]=CORBA::string_dup(retCpp[i].c_str()); //!< TODO: size_t to _CORBA_ULong
return ret;
}
ret.resize(sz,' ');
char *buf(const_cast<char *>(ret.c_str()));
for(std::size_t i=0;i<sz;i++)
- buf[i]=bsToBeConv[i];
+ buf[i]=bsToBeConv[(_CORBA_ULong)i]; //!< TODO: size_t to _CORBA_ULong
}
void PickelizedPyObjServer::FromCppToByteSeq(const std::string& strToBeConv, SALOME::ByteVec& ret)
{
const char *buf(strToBeConv.c_str());
std::size_t sz(strToBeConv.size());
- ret.length(sz);
+ ret.length((_CORBA_ULong)sz); //!< TODO: size_t to _CORBA_ULong
for(std::size_t i=0;i<sz;i++)
- ret[i]=buf[i];
+ ret[(_CORBA_ULong)i]=buf[i]; //!< TODO: size_t to _CORBA_ULong
}
SALOME::ByteVec *PickelizedPyObjServer::FromCppToByteSeq(const std::string& strToBeConv)
ret.resize(sz);
unsigned char *buf(const_cast<unsigned char *>(&ret[0]));
for(std::size_t i=0;i<sz;i++)
- buf[i]=bsToBeConv[i];
+ buf[i]=bsToBeConv[(_CORBA_ULong)i]; //!< TODO: size_t to _CORBA_ULong
}
void Transaction::FromVBToByteSeq(const std::vector<unsigned char>& bsToBeConv, SALOME::ByteVec& ret)
{
std::size_t sz(bsToBeConv.size());
- ret.length(sz);
+ ret.length((_CORBA_ULong)sz); //!< TODO: size_t to _CORBA_ULong
for(std::size_t i=0;i<sz;i++)
- ret[i]=bsToBeConv[i];
+ ret[(_CORBA_ULong)i]=bsToBeConv[i]; //!< TODO: size_t to _CORBA_ULong
}
Transaction::~Transaction()