remove std::make_pair
make_pair is an old C++98 function that can be replaced by modern shorter constructs. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -317,7 +317,7 @@ faad_get_file_time(InputStream &is)
|
||||
}
|
||||
}
|
||||
|
||||
return std::make_pair(recognized, duration);
|
||||
return {recognized, duration};
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -160,7 +160,7 @@ FindHybridDsdData(DecoderClient &client, InputStream &input)
|
||||
if (!found_version || !audio_format.IsValid())
|
||||
throw UnsupportedFile();
|
||||
|
||||
return std::make_pair(audio_format, remaining);
|
||||
return {audio_format, remaining};
|
||||
}
|
||||
|
||||
/* skip this chunk payload */
|
||||
|
Reference in New Issue
Block a user