mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-17 08:01:12 +02:00
Replace deprecated std::mem_fun and mem_fun_ref with mem_fn...
... which is easier to type and works whether you pass object pointers or references to its operator ().
This commit is contained in:
@@ -119,7 +119,7 @@ auto ODDecodeFFmpegTask::FromList(const std::list<TrackHolders> &channels) -> St
|
||||
Channels channels;
|
||||
channels.reserve(holders.size());
|
||||
transform(holders.begin(), holders.end(), back_inserter(channels),
|
||||
mem_fun_ref(&TrackHolders::value_type::get)
|
||||
mem_fn(&TrackHolders::value_type::get)
|
||||
);
|
||||
return channels;
|
||||
}
|
||||
|
Reference in New Issue
Block a user