Use QList::last instead of constLast for b/w compatibility

constLast was introduced in Qt5.6; Travis CI has older Qt
This commit is contained in:
Srivats P 2021-12-11 16:00:57 +05:30
parent 969e16aaf3
commit 8333e5fbf1

View File

@ -39,7 +39,7 @@ public:
QStringList bytes = input.split(QRegularExpression("[:-]"),
QString::SkipEmptyParts);
if (!bytes.isEmpty() && bytes.constLast().size() == 1)
if (!bytes.isEmpty() && bytes.last().size() == 1)
bytes.last().prepend("0");
while (bytes.count() < 6)