From 581c4ce52310e09c6f0346da33645c48e5b0bc11 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 13 Dec 2020 17:14:33 -0800 Subject: [PATCH] Compile fix. --- 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 05e4b8ea..4b41b6b7 100644 --- a/common/camera.cpp +++ b/common/camera.cpp @@ -107,7 +107,7 @@ void lcCamera::CreateName(const lcArray& 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) diff --git a/common/light.cpp b/common/light.cpp index 66c7b012..a98a83c8 100644 --- a/common/light.cpp +++ b/common/light.cpp @@ -84,7 +84,7 @@ void lcLight::CreateName(const lcArray& 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)