mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Qt 5.4 fixes.
This commit is contained in:
parent
e0b77b17bd
commit
d56e389ee4
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue