summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/helper.cpp b/helper.cpp
index e1ddc10..32dc11c 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -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;
}