diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-16 21:59:23 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-16 21:59:25 -0400 |
commit | cc935d997b3b992dd5fb2fec9b04a36954e714b8 (patch) | |
tree | 376c0a55e8a245981508eeb5c6a42f0542eae5be /src | |
parent | 3bbf4462db9bce89e7402f21dcccc81592d70483 (diff) |
macro_hle: Remove unnecessary std::make_pair calls
The purpose of make_pair is generally to deduce the types within the
pair without explicitly specifying the types, so these usages were
generally unnecessary, particularly when the type is enforced by the
array declaration.
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/macro/macro_hle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/macro/macro_hle.cpp b/src/video_core/macro/macro_hle.cpp index 410f99018..b64dc67c0 100644 --- a/src/video_core/macro/macro_hle.cpp +++ b/src/video_core/macro/macro_hle.cpp @@ -84,9 +84,9 @@ static void HLE_0217920100488FF7(Engines::Maxwell3D& maxwell3d, } // namespace constexpr std::array<std::pair<u64, HLEFunction>, 3> hle_funcs{{ - std::make_pair<u64, HLEFunction>(0x771BB18C62444DA0, &HLE_771BB18C62444DA0), - std::make_pair<u64, HLEFunction>(0x0D61FC9FAAC9FCAD, &HLE_0D61FC9FAAC9FCAD), - std::make_pair<u64, HLEFunction>(0x0217920100488FF7, &HLE_0217920100488FF7), + {0x771BB18C62444DA0, &HLE_771BB18C62444DA0}, + {0x0D61FC9FAAC9FCAD, &HLE_0D61FC9FAAC9FCAD}, + {0x0217920100488FF7, &HLE_0217920100488FF7}, }}; HLEMacro::HLEMacro(Engines::Maxwell3D& maxwell3d) : maxwell3d(maxwell3d) {} |