diff options
author | 2015-12-04 10:29:21 +0100 | |
---|---|---|
committer | 2015-12-04 10:29:21 +0100 | |
commit | 1b0ec08af5cd3b3268b5889ba4e30409431434e2 (patch) | |
tree | 42c510afaaeb15e1f97eff044a4d295586c30aaa /src/lib/formats/ap_dsk35.cpp | |
parent | 5a2f80dcde2e76356bf568f1e2d71b054a7db45b (diff) |
clang-modernize part 6
Diffstat (limited to 'src/lib/formats/ap_dsk35.cpp')
-rw-r--r-- | src/lib/formats/ap_dsk35.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/ap_dsk35.cpp b/src/lib/formats/ap_dsk35.cpp index 385ff326047..ff8cef2e08a 100644 --- a/src/lib/formats/ap_dsk35.cpp +++ b/src/lib/formats/ap_dsk35.cpp @@ -1410,8 +1410,8 @@ bool dc42_format::save(io_generic *io, floppy_image *image) if(hb == 4) { UINT8 h[7]; - for(int i=0; i<7; i++) - h[i] = gb(buf, ts, pos, wrap); + for(auto & elem : h) + elem = gb(buf, ts, pos, wrap); UINT8 v2 = gcr6bw_tb[h[2]]; UINT8 v3 = gcr6bw_tb[h[3]]; UINT8 tr = gcr6bw_tb[h[0]] | (v2 & 1 ? 0x40 : 0x00); |