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:
parent
969e16aaf3
commit
8333e5fbf1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user