aboutsummaryrefslogtreecommitdiff
path: root/src/aopacket.cpp
diff options
context:
space:
mode:
authorSkye Deving <76892045+skyedeving@users.noreply.github.com>2021-01-04 12:51:27 -0600
committerGitHub <noreply@github.com>2021-01-04 12:51:27 -0600
commit4d02cc8d680f4e069de0dddc8558ff9186153d59 (patch)
treed34a866584da0f3049341af7b18ea5ec6d9a5cee /src/aopacket.cpp
parentca88bd92fbd2c8fa3541b05a2493debe3c5d8058 (diff)
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
Diffstat (limited to 'src/aopacket.cpp')
-rw-r--r--src/aopacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aopacket.cpp b/src/aopacket.cpp
index a989a3ad..bb6ac73b 100644
--- a/src/aopacket.cpp
+++ b/src/aopacket.cpp
@@ -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()