summaryrefslogtreecommitdiff
path: root/ui/qt/proto_tree.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-09-15 08:46:43 +0200
committerMichael Mann <mmann78@netscape.net>2015-09-26 04:26:39 +0000
commit13d28691d6f1deae263a976d9defedd6f1ebb0d2 (patch)
tree0139581a39200ba4c2e353dae53c469167c2ef4b /ui/qt/proto_tree.cpp
parentc068bf5ab7bc052a26abc615bc9fbadde0503bf9 (diff)
downloadwireshark-13d28691d6f1deae263a976d9defedd6f1ebb0d2.tar.gz
Qt: Use "" for empty QString const reference.
Change-Id: I686eadc865ae38433c3795450aeca8582a74d2c8 Reviewed-on: https://code.wireshark.org/review/10535 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r--ui/qt/proto_tree.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp
index 20f1e0e8e5..577cf1f8c9 100644
--- a/ui/qt/proto_tree.cpp
+++ b/ui/qt/proto_tree.cpp
@@ -358,9 +358,8 @@ void ProtoTree::goToField(int hf_id)
}
}
-void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item) {
- static const QString emptyQString;
-
+void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item)
+{
if (item) {
field_info *fi;
QString item_info;
@@ -385,7 +384,7 @@ void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item) {
item_info.append(QString(tr(", %1 bytes")).arg(finfo_length));
}
- emit protoItemSelected(emptyQString);
+ emit protoItemSelected("");
emit protoItemSelected(NULL);
emit protoItemSelected(item_info);
emit protoItemSelected(fi);
@@ -410,7 +409,7 @@ void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item) {
*/
} else {
- emit protoItemSelected(emptyQString);
+ emit protoItemSelected("");
emit protoItemSelected(NULL);
}
}