From 5f6c76af51bd41508c38c153bd471f9a6e7ee663 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 Dec 2023 14:54:17 -0500 Subject: VideoCommon: Use std::span for BoundingBox::Write() Crosses off a lingering TODO. Also amends a few nearby cases where a u32 cast was being repromoted to size_t. --- Source/Core/VideoCommon/BoundingBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/BoundingBox.cpp') diff --git a/Source/Core/VideoCommon/BoundingBox.cpp b/Source/Core/VideoCommon/BoundingBox.cpp index ffc85d824c..33174012d7 100644 --- a/Source/Core/VideoCommon/BoundingBox.cpp +++ b/Source/Core/VideoCommon/BoundingBox.cpp @@ -51,7 +51,7 @@ void BoundingBox::Flush() for (u32 i = start; i < end; ++i) m_dirty[i] = false; - Write(start, std::vector(m_values.begin() + start, m_values.begin() + end)); + Write(start, std::span(m_values.begin() + start, m_values.begin() + end)); } } -- cgit v1.2.3