aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/sctp_graph_dialog.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-01-23 13:18:30 +0100
committerAnders Broman <a.broman58@gmail.com>2016-01-23 23:15:54 +0000
commit720f57d0009fd3941d327d30dc064adbc5feb5a0 (patch)
treeaa7cd0b0517ca1420865d8b4f5baba0562866286 /ui/qt/sctp_graph_dialog.cpp
parentdd4638948510babe0f64616dbdab0da58a6b559c (diff)
ui: Code cleanup
Fixed code layout to use common style in the file. Mostly whitespace changes. Change-Id: Id37b57717a9e26248fad07322dff09b1d1f45ac2 Reviewed-on: https://code.wireshark.org/review/13504 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/sctp_graph_dialog.cpp')
-rw-r--r--ui/qt/sctp_graph_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/sctp_graph_dialog.cpp b/ui/qt/sctp_graph_dialog.cpp
index d0efcf5f57..2fa2aca04a 100644
--- a/ui/qt/sctp_graph_dialog.cpp
+++ b/ui/qt/sctp_graph_dialog.cpp
@@ -102,12 +102,12 @@ void SCTPGraphDialog::drawNRSACKGraph()
tsnumber = g_ntohl(nr_sack_header->cum_tsn_ack);
total_gaps = numberOf_gaps + numberOf_nr_gaps;
/* If the number of nr_gaps is greater than 0 */
- if ( total_gaps > 0 ) {
+ if (total_gaps > 0) {
nr_gap = &nr_sack_header->gaps[0];
for (i = 0; i < total_gaps; i++) {
gap_start = g_ntohs(nr_gap->start);
gap_end = g_ntohs(nr_gap->end);
- for ( j = gap_start; j <= gap_end; j++) {
+ for (j = gap_start; j <= gap_end; j++) {
if (i >= numberOf_gaps) {
yn.append(j + tsnumber);
xn.append(sack->secs + sack->usecs/1000000.0);