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:
Rosen Penev
2021-09-07 20:58:23 -07:00
parent 15f419e1cb
commit 6ec5089cc9
10 changed files with 15 additions and 18 deletions

View File

@@ -317,7 +317,7 @@ faad_get_file_time(InputStream &is)
}
}
return std::make_pair(recognized, duration);
return {recognized, duration};
}
static void

View File

@@ -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 */