From d56e389ee4cb4ffc5fac1e570394992f115149e1 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Mon, 5 Jul 2021 17:07:24 -0700 Subject: [PATCH] Qt 5.4 fixes. --- common/camera.cpp | 2 +- common/light.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/camera.cpp b/common/camera.cpp index bd37d81e..f92df41e 100644 --- a/common/camera.cpp +++ b/common/camera.cpp @@ -126,7 +126,7 @@ void lcCamera::CreateName(const lcArray& 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; diff --git a/common/light.cpp b/common/light.cpp index e878ab50..153b2194 100644 --- a/common/light.cpp +++ b/common/light.cpp @@ -81,7 +81,7 @@ void lcLight::CreateName(const lcArray& 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;