diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-23 12:23:54 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | a690936ed75e96627be0e2ecafee2360a71e8d3c (patch) | |
tree | 1221c131b8fe3a51cf43a6bd7d89a51c431c559d /src/music/win32_m.cpp | |
parent | 56ae855dc20b27593c9a454d5a09d8f892a6c71f (diff) | |
download | openttd-a690936ed75e96627be0e2ecafee2360a71e8d3c.tar.xz |
Codechange: Replace SmallVector::Length() with std::vector::size()
Diffstat (limited to 'src/music/win32_m.cpp')
-rw-r--r-- | src/music/win32_m.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/music/win32_m.cpp b/src/music/win32_m.cpp index a32318db1..6d88af4a3 100644 --- a/src/music/win32_m.cpp +++ b/src/music/win32_m.cpp @@ -187,7 +187,7 @@ void CALLBACK TimerCallback(UINT uTimerID, UINT, DWORD_PTR dwUser, DWORD_PTR, DW uint preload_bytes = 0; for (size_t bl = 0; bl < _midi.current_file.blocks.size(); bl++) { MidiFile::DataBlock &block = _midi.current_file.blocks[bl]; - preload_bytes += block.data.Length(); + preload_bytes += block.data.size(); if (block.ticktime >= _midi.current_segment.start) { if (_midi.current_segment.loop) { DEBUG(driver, 2, "Win32-MIDI: timer: loop from block %d (ticktime %d, realtime %.3f, bytes %d)", (int)bl, (int)block.ticktime, ((int)block.realtime)/1000.0, (int)preload_bytes); @@ -230,7 +230,7 @@ void CALLBACK TimerCallback(UINT uTimerID, UINT, DWORD_PTR dwUser, DWORD_PTR, DW } byte *data = block.data.Begin(); - size_t remaining = block.data.Length(); + size_t remaining = block.data.size(); byte last_status = 0; while (remaining > 0) { /* MidiFile ought to have converted everything out of running status, |