diff options
Diffstat (limited to 'libs/ptformat/ptfformat.cc')
-rw-r--r-- | libs/ptformat/ptfformat.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/ptformat/ptfformat.cc b/libs/ptformat/ptfformat.cc index 62fc0293c7..048c174918 100644 --- a/libs/ptformat/ptfformat.cc +++ b/libs/ptformat/ptfformat.cc @@ -637,11 +637,10 @@ PTFFormat::parserest5(void) { } void -PTFFormat::resort(std::vector<wav_t> *ws) { +PTFFormat::resort(std::vector<wav_t>& ws) { int j = 0; - std::sort((*ws).begin(), (*ws).end()); - for (std::vector<wav_t>::iterator i = (*ws).begin(); - i != (*ws).end(); ++i) { + std::sort(ws.begin(), ws.end()); + for (std::vector<wav_t>::iterator i = ws.begin(); i != ws.end(); ++i) { (*i).index = j; j++; } @@ -733,8 +732,8 @@ PTFFormat::parseaudio5(void) { numberofwavs--; i += 7; } - resort(&actualwavs); - resort(&audiofiles); + resort(actualwavs); + resort(audiofiles); } void |