Use QList::mid when constructing QStringList (#365)

The constructor with two iterators is too cutting edge from 5.14 to be
widely supported right now
This commit is contained in:
Skye Deving 2021-01-04 12:51:27 -06:00 committed by GitHub
parent ca88bd92fb
commit 4d02cc8d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ AOPacket::AOPacket(QString p_packet_string)
QStringList packet_contents = p_packet_string.split("#");
m_header = packet_contents.first();
m_contents = QStringList(packet_contents.begin()+1, packet_contents.end()-1); // trims %
m_contents = packet_contents.mid(1, packet_contents.size()-2); // trims %
}
QString AOPacket::to_string()