diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2016-05-23 21:49:51 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-06-08 03:44:36 +0000 |
commit | 74484c6ebf961769f8f44d8b95ebeb7532f47a93 (patch) | |
tree | 3a3d2d6e88884372301bebdfe1602a96cdc33719 /ui/qt/bluetooth_hci_summary_dialog.cpp | |
parent | 502335612c4c35a4bf7f19ffa7500ea1aac7d43f (diff) | |
download | wireshark-74484c6ebf961769f8f44d8b95ebeb7532f47a93.tar.gz |
Apply the prefix operator to iterators.
Prefix operators are supposed to be more efficient with iterators,
so lets use them instead of postfix operators.
Change-Id: I3090e4954c5cb67db47c88e2874b1a8ac52aa2cd
Reviewed-on: https://code.wireshark.org/review/15546
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/bluetooth_hci_summary_dialog.cpp')
-rw-r--r-- | ui/qt/bluetooth_hci_summary_dialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/bluetooth_hci_summary_dialog.cpp b/ui/qt/bluetooth_hci_summary_dialog.cpp index 89570c909c..1a88413c82 100644 --- a/ui/qt/bluetooth_hci_summary_dialog.cpp +++ b/ui/qt/bluetooth_hci_summary_dialog.cpp @@ -678,7 +678,6 @@ void BluetoothHciSummaryDialog::on_actionCopy_All_triggered() { QClipboard *clipboard = QApplication::clipboard(); QString copy; - QTreeWidgetItemIterator i_item(ui->tableTreeWidget); QTreeWidgetItem *item; item = ui->tableTreeWidget->headerItem(); @@ -694,7 +693,7 @@ void BluetoothHciSummaryDialog::on_actionCopy_All_triggered() .arg(item->text(column_number_hardware_error), -15) .arg(item->text(column_number_occurrence), -10); - for (int i_item = 0; i_item < ui->tableTreeWidget->topLevelItemCount(); i_item += 1) { + for (int i_item = 0; i_item < ui->tableTreeWidget->topLevelItemCount(); ++i_item) { item = ui->tableTreeWidget->topLevelItem(i_item); copy += QString("%1 %2 %3 %4 %5 %6 %7 %8 %9\n") |