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/protocol_hierarchy_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/protocol_hierarchy_dialog.cpp')
-rw-r--r-- | ui/qt/protocol_hierarchy_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/protocol_hierarchy_dialog.cpp b/ui/qt/protocol_hierarchy_dialog.cpp index bdda94b901..79bab76339 100644 --- a/ui/qt/protocol_hierarchy_dialog.cpp +++ b/ui/qt/protocol_hierarchy_dialog.cpp @@ -345,7 +345,7 @@ void ProtocolHierarchyDialog::on_actionCopyAsCsv_triggered() } stream << separated_value.join(",") << endl; - if (!first) iter++; + if (!first) ++iter; first = false; } wsApp->clipboard()->setText(stream.readAll()); @@ -366,7 +366,7 @@ void ProtocolHierarchyDialog::on_actionCopyAsYaml_triggered() foreach (QVariant v, protoHierRowData(item)) { stream << " - " << v.toString() << endl; } - if (!first) iter++; + if (!first) ++iter; first = false; } wsApp->clipboard()->setText(stream.readAll()); |