summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CPMemory.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2026-01-17 16:49:57 -0600
committerGitHub <noreply@github.com>2026-01-17 16:49:57 -0600
commitb556bd99d72d996364f423b663af5d02a9610c4f (patch)
tree9942d30854cbe59a390221087486ab64254e9ba7 /Source/Core/VideoCommon/CPMemory.cpp
parent8a606fca88a81b5a24d8cc53e5eaba91f2e38fbd (diff)
parent55f0715ad4edf4485bc7b35e49fbd883ce760e47 (diff)
Merge pull request #14268 from JoshuaVandaele/std-tounderlying
c++23: Replace Common::ToUnderlying with std::to_underlying
Diffstat (limited to 'Source/Core/VideoCommon/CPMemory.cpp')
-rw-r--r--Source/Core/VideoCommon/CPMemory.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/CPMemory.cpp b/Source/Core/VideoCommon/CPMemory.cpp
index 9b47a13da0..2efb000d90 100644
--- a/Source/Core/VideoCommon/CPMemory.cpp
+++ b/Source/Core/VideoCommon/CPMemory.cpp
@@ -5,9 +5,9 @@
#include <cstring>
#include <type_traits>
+#include <utility>
#include "Common/ChunkFile.h"
-#include "Common/EnumUtils.h"
#include "Common/Logging/Log.h"
#include "Core/DolphinAnalytics.h"
#include "Core/System.h"
@@ -112,7 +112,7 @@ void CPState::LoadCPReg(u8 sub_cmd, u32 value)
WARN_LOG_FMT(VIDEO,
"CP MATINDEX_A: an exact value of {:02x} was expected "
"but instead a value of {:02x} was seen",
- Common::ToUnderlying(MATINDEX_A), sub_cmd);
+ std::to_underlying(MATINDEX_A), sub_cmd);
}
matrix_index_a.Hex = value;
@@ -125,7 +125,7 @@ void CPState::LoadCPReg(u8 sub_cmd, u32 value)
WARN_LOG_FMT(VIDEO,
"CP MATINDEX_B: an exact value of {:02x} was expected "
"but instead a value of {:02x} was seen",
- Common::ToUnderlying(MATINDEX_B), sub_cmd);
+ std::to_underlying(MATINDEX_B), sub_cmd);
}
matrix_index_b.Hex = value;
@@ -138,7 +138,7 @@ void CPState::LoadCPReg(u8 sub_cmd, u32 value)
WARN_LOG_FMT(VIDEO,
"CP VCD_LO: an exact value of {:02x} was expected "
"but instead a value of {:02x} was seen",
- Common::ToUnderlying(VCD_LO), sub_cmd);
+ std::to_underlying(VCD_LO), sub_cmd);
}
vtx_desc.low.Hex = value;
@@ -151,7 +151,7 @@ void CPState::LoadCPReg(u8 sub_cmd, u32 value)
WARN_LOG_FMT(VIDEO,
"CP VCD_HI: an exact value of {:02x} was expected "
"but instead a value of {:02x} was seen",
- Common::ToUnderlying(VCD_HI), sub_cmd);
+ std::to_underlying(VCD_HI), sub_cmd);
}
vtx_desc.high.Hex = value;