mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +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))
|
if (CameraName.startsWith(Prefix))
|
||||||
{
|
{
|
||||||
bool Ok = false;
|
bool Ok = false;
|
||||||
int CameraNumber = QStringView(CameraName).mid(Prefix.size()).toInt(&Ok);
|
int CameraNumber = CameraName.mid(Prefix.size()).toInt(&Ok);
|
||||||
|
|
||||||
if (Ok && CameraNumber > MaxCameraNumber)
|
if (Ok && CameraNumber > MaxCameraNumber)
|
||||||
MaxCameraNumber = CameraNumber;
|
MaxCameraNumber = CameraNumber;
|
||||||
|
|
|
@ -81,7 +81,7 @@ void lcLight::CreateName(const lcArray<lcLight*>& Lights)
|
||||||
if (LightName.startsWith(Prefix))
|
if (LightName.startsWith(Prefix))
|
||||||
{
|
{
|
||||||
bool Ok = false;
|
bool Ok = false;
|
||||||
int LightNumber = QStringView(LightName).mid(Prefix.size()).toInt(&Ok);
|
int LightNumber = LightName.mid(Prefix.size()).toInt(&Ok);
|
||||||
|
|
||||||
if (Ok && LightNumber > MaxLightNumber)
|
if (Ok && LightNumber > MaxLightNumber)
|
||||||
MaxLightNumber = LightNumber;
|
MaxLightNumber = LightNumber;
|
||||||
|
|
Loading…
Add table
Reference in a new issue