diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-10-30 20:24:08 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-10-30 20:24:08 +0000 |
commit | 12dfeadbbf902c9b48c842d7280af6b064d985a7 (patch) | |
tree | d38525d76bb7d300f5b4872c9bcc5b6fdb205193 /ui/qt/byte_view_tab.cpp | |
parent | 0a28fb8f6a354aa9a446b6bf70733c305534e074 (diff) | |
download | wireshark-12dfeadbbf902c9b48c842d7280af6b064d985a7.tar.gz |
Get rid of a couple of unused variables. Other minor cleanup.
svn path=/trunk/; revision=45839
Diffstat (limited to 'ui/qt/byte_view_tab.cpp')
-rw-r--r-- | ui/qt/byte_view_tab.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp index 6c84fb5ccb..6ea249f725 100644 --- a/ui/qt/byte_view_tab.cpp +++ b/ui/qt/byte_view_tab.cpp @@ -62,10 +62,9 @@ void ByteViewTab::protoTreeItemChanged(QTreeWidgetItem *current) { field_info *fi; fi = current->data(0, Qt::UserRole).value<field_info *>(); -// g_log(NULL, G_LOG_LEVEL_DEBUG, "fi selected %p", fi); int i = 0; - ByteViewText *byte_view_text = dynamic_cast<ByteViewText*>(widget(i)); + ByteViewText *byte_view_text = qobject_cast<ByteViewText*>(widget(i)); while (byte_view_text) { if (byte_view_text->hasDataSource(fi->ds_tvb)) { QTreeWidgetItem *parent = current->parent(); @@ -164,11 +163,11 @@ void ByteViewTab::protoTreeItemChanged(QTreeWidgetItem *current) { // Appendix (trailer) bytes byte_view_text->setFieldAppendixHighlight(fa_start, fa_end); - setCurrentIndex(i); - byte_view_text->render(); + + setCurrentIndex(i); } - byte_view_text = dynamic_cast<ByteViewText*>(widget(++i)); + byte_view_text = qobject_cast<ByteViewText*>(widget(++i)); } } } |