mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-15 17:21:09 +02:00
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-
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user