From 355eb9ce880349ff94759f731bb7ae747bf6677c Mon Sep 17 00:00:00 2001 From: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:11:32 +0100 Subject: [PATCH] fix: Qt6.9 QString stricter .arg matching (Hopefully) fixes #14071 --- src/engine/sidechain/enginerecord.cpp | 6 +++--- src/recording/recordingmanager.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/sidechain/enginerecord.cpp b/src/engine/sidechain/enginerecord.cpp index 11c10223da8..585a31ec053 100644 --- a/src/engine/sidechain/enginerecord.cpp +++ b/src/engine/sidechain/enginerecord.cpp @@ -224,9 +224,9 @@ void EngineRecord::process(const CSAMPLE* pBuffer, const int iBufferSize) { } QString EngineRecord::getRecordedDurationStr() { - return QString("%1:%2") - .arg(m_recordedDuration / 60, 2, 'f', 0, '0') // minutes - .arg(m_recordedDuration % 60, 2, 'f', 0, '0'); // seconds + return QStringLiteral("%1:%2") + .arg(m_recordedDuration / 60, 2, 10, QChar('0')) // minutes + .arg(m_recordedDuration % 60, 2, 10, QChar('0')); // seconds } void EngineRecord::writeCueLine() { diff --git a/src/recording/recordingmanager.cpp b/src/recording/recordingmanager.cpp index 759a370be87..1483ace9cb5 100644 --- a/src/recording/recordingmanager.cpp +++ b/src/recording/recordingmanager.cpp @@ -209,9 +209,9 @@ void RecordingManager::slotDurationRecorded(quint64 duration) { // Copy from the implementation in enginerecord.cpp QString RecordingManager::getRecordedDurationStr(unsigned int duration) { - return QString("%1:%2") - .arg(duration / 60, 2, 'f', 0, '0') // minutes - .arg(duration % 60, 2, 'f', 0, '0'); // seconds + return QStringLiteral("%1:%2") + .arg(duration / 60, 2, 10, QChar('0')) // minutes + .arg(duration % 60, 2, 10, QChar('0')); // seconds } // Only called when recording is active.