aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2017-12-07 18:20:19 -0800
committerGerald Combs <gerald@wireshark.org>2017-12-08 02:22:00 +0000
commit847585f938a525fb32ee4a0227cc500316facc34 (patch)
treebc8b01fa9296c0a0700567af91e3a450f8bb6a51
parent683087628b5ef63343f6e572289b8e90a3dd245b (diff)
More QVector fixes.
Change-Id: I710f9c9d5391a8f1252cc02fdd263a8dfedb31f6 Reviewed-on: https://code.wireshark.org/review/24730 Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--ui/qt/widgets/byte_view_text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/widgets/byte_view_text.cpp b/ui/qt/widgets/byte_view_text.cpp
index 122b740..e1aeb2f 100644
--- a/ui/qt/widgets/byte_view_text.cpp
+++ b/ui/qt/widgets/byte_view_text.cpp
@@ -359,7 +359,7 @@ void ByteViewText::drawLine(QPainter *painter, const int offset, const int row_y
if ((tvb_pos != offset) && ((tvb_pos % separator_interval_) == 0)) {
line += ' ';
if (build_x_pos) {
- x_pos_to_column_.append(QVector<int>().fill(tvb_pos - offset - 1, font_width_ / 2));
+ x_pos_to_column_ += QVector<int>().fill(tvb_pos - offset - 1, font_width_ / 2);
}
}
@@ -373,7 +373,7 @@ void ByteViewText::drawLine(QPainter *painter, const int offset, const int row_y
line += UTF8_MIDDLE_DOT;
}
if (build_x_pos) {
- x_pos_to_column_.append(QVector<int>().fill(tvb_pos - offset, fontMetrics().width(line) - x_pos_to_column_.size()));
+ x_pos_to_column_ += QVector<int>().fill(tvb_pos - offset, fontMetrics().width(line) - x_pos_to_column_.size());
}
}
addAsciiFormatRange(fmt_list, proto_start_, proto_len_, offset, max_tvb_pos, ModeProtocol);