summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-12-03 23:15:59 +0000
committerEvan Huus <eapache@gmail.com>2012-12-03 23:15:59 +0000
commitced8abb1253b108f6ad80fad567d6afde359f1dd (patch)
tree56536f9d3848a59fa269cf92deae00da1a81125b
parent5f9077232e776db46341e29cf4fabcb6c2168be9 (diff)
downloadwireshark-ced8abb1253b108f6ad80fad567d6afde359f1dd.tar.gz
Reduce the scope of one variable definition slightly.
svn path=/trunk/; revision=46361
-rw-r--r--ui/qt/byte_view_text.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/byte_view_text.cpp b/ui/qt/byte_view_text.cpp
index f0c77457a7..46963aed74 100644
--- a/ui/qt/byte_view_text.cpp
+++ b/ui/qt/byte_view_text.cpp
@@ -385,11 +385,10 @@ void ByteViewText::mousePressEvent (QMouseEvent * event) {
if (event->button() == Qt::LeftButton) {
int byte;
QTextCursor cursor(cursorForPosition(event->pos()));
- field_info *fi;
byte = byteFromRowCol(cursor.blockNumber(), cursor.columnNumber());
if (byte >= 0) {
- fi = proto_find_field_from_offset(proto_tree_, byte, tvb_);
+ field_info *fi = proto_find_field_from_offset(proto_tree_, byte, tvb_);
if (fi && tree_widget_) {
// XXX - This should probably be a ProtoTree method.