diff options
-rw-r--r-- | helper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -188,8 +188,7 @@ namespace Helper { } seconds = secs - hours * 60 * 60 - minutes * 60; seconds = (seconds > 60) ? 59 : seconds; - QByteArray retval(10, '\0'); - ::snprintf(retval.data(), 9, "%.2lld:%.2lld:%.2lld", hours, minutes, seconds); + QString retval = QString("%1:%2:%3").arg(hours, 2, 10, QChar('0')).arg(minutes, 2, 10, QChar('0')).arg(seconds, 2, 10, QChar('0')); return retval; } |