refactor: Use chrono instead of plain ints

This commit is contained in:
Lars Toenning
2024-11-30 12:18:32 +01:00
parent b8ce7a96f3
commit 74415e756a
84 changed files with 450 additions and 350 deletions

View File

@@ -449,9 +449,9 @@ namespace swift::core::context
void CContextAudioBase::playSelcalTone(const CSelcal &selcal)
{
const CTime t = m_selcalPlayer->play(90, selcal);
const int ms = t.toMs();
if (ms > 10)
using namespace std::chrono_literals;
const std::chrono::milliseconds ms = m_selcalPlayer->play(90, selcal);
if (ms > 10ms)
{
// Play additional notification
const QPointer<const CContextAudioBase> myself(this);