Skip to content

refactor: replace_C_style_casts_to_named_casts_P2-15#1

Merged
Cle2ment merged 1 commit into
masterfrom
refactor/phase-6-casts
Jun 8, 2026
Merged

refactor: replace_C_style_casts_to_named_casts_P2-15#1
Cle2ment merged 1 commit into
masterfrom
refactor/phase-6-casts

Conversation

@Cle2ment

@Cle2ment Cle2ment commented Jun 8, 2026

Copy link
Copy Markdown
Owner

P2-15 — 将 C 风格强制转换替换为命名强制转换

4 个文件、28 处 C 风格强制转换替换为 static_cast / reinterpret_cast / const_cast

文件 转换次数 说明
Application.cpp 17 整数、void 抑制、PFN 函数指针、glfwGetTime、RobotoRegular const_cast
Image.cpp 4 VkFormat 枚举、stbi_loadf uint8_t*、VkDescriptorSet、void**
Input/Input.cpp 5 KeyCode/MouseButton enum→int、glfwGetCursorPos double→float
Random.h 2 s_Distribution uint32_t→float、numeric_limits→float

RayTracing 端对应子模块 bump:Cle2ment/RayTracing#18

构建验证:Release(xmake + MSVC)零错误

@Cle2ment Cle2ment merged commit 8e350fe into master Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant