diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2017-06-02 03:25:02 +0200 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2017-06-05 20:11:01 +0200 |
commit | 18dc3c396299caccb0df31254aaec0d08b70dd2a (patch) | |
tree | 05b0ce630dbc47a5f842f50fce46f891b1482108 /src/qt/trafficgraphwidget.cpp | |
parent | 7c00c267264ad80c2991b2f6c2ae08c2d9c9732b (diff) |
scripted-diff: Remove Q_FOREACH
-BEGIN VERIFY SCRIPT-
sed -i 's/Q_FOREACH *(\(.*\),/for (\1 :/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp ;
-END VERIFY SCRIPT-
Diffstat (limited to 'src/qt/trafficgraphwidget.cpp')
-rw-r--r-- | src/qt/trafficgraphwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/trafficgraphwidget.cpp b/src/qt/trafficgraphwidget.cpp index 601d554c02..afd295c13b 100644 --- a/src/qt/trafficgraphwidget.cpp +++ b/src/qt/trafficgraphwidget.cpp @@ -139,10 +139,10 @@ void TrafficGraphWidget::updateRates() } float tmax = 0.0f; - Q_FOREACH(float f, vSamplesIn) { + for (float f : vSamplesIn) { if(f > tmax) tmax = f; } - Q_FOREACH(float f, vSamplesOut) { + for (float f : vSamplesOut) { if(f > tmax) tmax = f; } fMax = tmax; |