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>
This commit is contained in:
Stig Bjørlykke 2015-09-15 08:46:43 +02:00 committed by Michael Mann
parent c068bf5ab7
commit 13d28691d6
1 changed files with 4 additions and 5 deletions

View File

@ -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);
}
}