Skip to content

Commit

Permalink
fix: Qt6.9 QString stricter .arg matching
Browse files Browse the repository at this point in the history
(Hopefully) fixes #14071
  • Loading branch information
Swiftb0y committed Dec 30, 2024
1 parent bfb4b5c commit 9834273
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/engine/sidechain/enginerecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ 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
// cast is necessary to clarify which .arg overload to call
const qulonglong recordedDuration = m_recordedDuration;
return QStringLiteral("%1:%2")
.arg(recordedDuration / 60, 2, 10, QChar('0')) // minutes
.arg(recordedDuration % 60, 2, 10, QChar('0')); // seconds
}

void EngineRecord::writeCueLine() {
Expand Down

0 comments on commit 9834273

Please sign in to comment.