Dalsze poprawki do AnsiString w różnych plikach.

This commit is contained in:
firleju
2016-10-23 22:34:32 +02:00
parent 89756e81a1
commit 28d5be7363
18 changed files with 82 additions and 62 deletions

View File

@@ -400,7 +400,7 @@ void TPythonScreens::reset(void *train)
_train = train;
}
void TPythonScreens::init(TQueryParserComp *parser, TModel3d *model, AnsiString name, int cab)
void TPythonScreens::init(TQueryParserComp *parser, TModel3d *model, string name, int cab)
{
char buff[255];
AnsiString asSubModelName = parser->GetNextSymbol();
@@ -471,13 +471,13 @@ void TPythonScreens::update()
_cleanupReadyFlag = true;
}
void TPythonScreens::setLookupPath(AnsiString path)
void TPythonScreens::setLookupPath(string path)
{
if (_lookupPath != NULL)
{
free(_lookupPath);
}
_lookupPath = (char *)calloc(path.Length() + 1, sizeof(char));
_lookupPath = (char *)calloc(path.length() + 1, sizeof(char));
strcpy(_lookupPath, path.c_str());
}