Replaced unsafe c string usage with std::string

This commit is contained in:
Robert Osfield
2016-06-28 16:03:01 +01:00
parent 7f1ba5f7df
commit b5f880ba1d
5 changed files with 9 additions and 9 deletions

View File

@@ -111,7 +111,7 @@ bool trpgModel::isValid() const
{
if (type == External && !name)
{
strcpy(errMess, "Model is external with no name");
errMess.assign("Model is external with no name");
return false;
}
@@ -375,7 +375,7 @@ bool trpgModelTable::isValid() const
for ( ; itr != modelsMap.end( ); itr++) {
if(!itr->second.isValid()) {
if(itr->second.getErrMess())
strcpy(errMess, itr->second.getErrMess());
errMess.assign(itr->second.getErrMess());
return false;
}
}