aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/follow_stream_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/follow_stream_dialog.cpp')
-rw-r--r--ui/qt/follow_stream_dialog.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp
index 6af72f133c..d6f96f7679 100644
--- a/ui/qt/follow_stream_dialog.cpp
+++ b/ui/qt/follow_stream_dialog.cpp
@@ -400,8 +400,8 @@ void FollowStreamDialog::resetStream()
if (!data_out_filename_.isEmpty()) {
ws_unlink(data_out_filename_.toUtf8().constData());
}
- for (cur = follow_info_.payload; cur; cur = g_list_next(cur)) {
- follow_record = (follow_record_t *)cur->data;
+ for (cur = follow_info_.payload; cur; cur = gxx_list_next(cur)) {
+ follow_record = gxx_list_data(follow_record_t *, cur);
if(follow_record->data) {
g_byte_array_free(follow_record->data, TRUE);
}
@@ -411,25 +411,25 @@ void FollowStreamDialog::resetStream()
//Only TCP stream uses fragments
if (follow_type_ == FOLLOW_TCP) {
- for (cur = follow_info_.fragments[0]; cur; cur = g_list_next(cur)) {
- follow_record = (follow_record_t *)cur->data;
+ for (cur = follow_info_.fragments[0]; cur; cur = gxx_list_next(cur)) {
+ follow_record = gxx_list_data(follow_record_t *, cur);
if(follow_record->data) {
g_byte_array_free(follow_record->data, TRUE);
}
g_free(follow_record);
}
- follow_info_.fragments[0] = NULL;
- for (cur = follow_info_.fragments[1]; cur; cur = g_list_next(cur)) {
- follow_record = (follow_record_t *)cur->data;
+ follow_info_.fragments[0] = Q_NULLPTR;
+ for (cur = follow_info_.fragments[1]; cur; cur = gxx_list_next(cur)) {
+ follow_record = gxx_list_data(follow_record_t *, cur);
if(follow_record->data) {
g_byte_array_free(follow_record->data, TRUE);
}
g_free(follow_record);
}
- follow_info_.fragments[1] = NULL;
+ follow_info_.fragments[1] = Q_NULLPTR;
}
- follow_info_.payload = NULL;
+ follow_info_.payload = Q_NULLPTR;
follow_info_.client_port = 0;
}