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_att_server_attributes_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_att_server_attributes_dialog.cpp')
-rw-r--r-- | ui/qt/bluetooth_att_server_attributes_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/bluetooth_att_server_attributes_dialog.cpp b/ui/qt/bluetooth_att_server_attributes_dialog.cpp index c427895e52..431c40f63a 100644 --- a/ui/qt/bluetooth_att_server_attributes_dialog.cpp +++ b/ui/qt/bluetooth_att_server_attributes_dialog.cpp @@ -236,7 +236,7 @@ gboolean BluetoothAttServerAttributesDialog::tapPacket(void *tapinfo_ptr, packet item->text(column_number_uuid) == uuid && item->text(column_number_uuid_name) == uuid_name) return TRUE; - i_item += 1; + ++i_item; } } @@ -300,7 +300,7 @@ void BluetoothAttServerAttributesDialog::on_actionCopy_All_triggered() .arg(item->text(column_number_handle), -6) .arg(item->text(column_number_uuid), -32) .arg(item->text(column_number_uuid_name)); - i_item += 1; + ++i_item; } clipboard->setText(copy); |