diff options
author | Michael Mann <mmann78@netscape.net> | 2015-09-11 17:41:13 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-09-15 02:20:13 +0000 |
commit | 51360b538016523bb2d2670c7bcb51f127a757e7 (patch) | |
tree | f390e21736bbc9711a4e97cc9cd5c00ed34c1ec0 /ui/qt/proto_tree.cpp | |
parent | aebc99a49c325fa26040cd8bf4b8342a49b541e4 (diff) |
Eliminate proto_tree_add_text from odds and ends.
A few calls in the epan directory and comments in the ui directory
Change-Id: Ia8f8830ac6909ab94d3a03283bfd173456bc9718
Reviewed-on: https://code.wireshark.org/review/10492
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r-- | ui/qt/proto_tree.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 961cf577e0..20f1e0e8e5 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -392,7 +392,7 @@ void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item) { } // else the GTK+ version pushes an empty string as described below. /* * Don't show anything if the field name is zero-length; - * the pseudo-field for "proto_tree_add_text()" is such + * the pseudo-field for text-only items is such * a field, and we don't want "Text (text)" showing up * on the status line if you've selected such a field. * @@ -404,10 +404,9 @@ void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item) { * but we'd have to add checks for null pointers in some * places if we did that. * - * Or perhaps protocol tree items added with - * "proto_tree_add_text()" should have -1 as the field index, - * with no pseudo-field being used, but that might also - * require special checks for -1 to be added. + * Or perhaps text-only items should have -1 as the field + * index, with no pseudo-field being used, but that might + * also require special checks for -1 to be added. */ } else { |