Compile fix.

This commit is contained in:
Leonardo Zide 2020-12-13 17:14:33 -08:00
parent 9a7e256c72
commit 581c4ce523
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ void lcCamera::CreateName(const lcArray<lcCamera*>& Cameras)
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
int CameraNumber = CameraName.midRef(Prefix.size()).toInt(&Ok);
#else
int CameraNumber = CameraName.midRef((int)strlen(Prefix.latin1())).toInt(&Ok);
int CameraNumber = CameraName.mid((int)strlen(Prefix.latin1())).toInt(&Ok);
#endif
if (Ok && CameraNumber > MaxCameraNumber)

View file

@ -84,7 +84,7 @@ void lcLight::CreateName(const lcArray<lcLight*>& Lights)
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
int LightNumber = LightName.midRef(Prefix.size()).toInt(&Ok);
#else
int LightNumber = LightName.midRef((int)strlen(Prefix.latin1())).toInt(&Ok);
int LightNumber = LightName.mid((int)strlen(Prefix.latin1())).toInt(&Ok);
#endif
if (Ok && LightNumber > MaxLightNumber)