aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()