Qt 5.4 fixes.

This commit is contained in:
Leonardo Zide 2021-07-05 17:07:24 -07:00
parent e0b77b17bd
commit d56e389ee4
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ void lcCamera::CreateName(const lcArray<lcCamera*>& Cameras)
if (CameraName.startsWith(Prefix))
{
bool Ok = false;
int CameraNumber = QStringView(CameraName).mid(Prefix.size()).toInt(&Ok);
int CameraNumber = CameraName.mid(Prefix.size()).toInt(&Ok);
if (Ok && CameraNumber > MaxCameraNumber)
MaxCameraNumber = CameraNumber;

View file

@ -81,7 +81,7 @@ void lcLight::CreateName(const lcArray<lcLight*>& Lights)
if (LightName.startsWith(Prefix))
{
bool Ok = false;
int LightNumber = QStringView(LightName).mid(Prefix.size()).toInt(&Ok);
int LightNumber = LightName.mid(Prefix.size()).toInt(&Ok);
if (Ok && LightNumber > MaxLightNumber)
MaxLightNumber = LightNumber;