From f91505ff098afd14e65dfb1a5511438ad6dd996d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 4 Jan 2024 21:33:30 +0100 Subject: [PATCH] fix: Unnecessary reinterpret_cast --- plugins/builtin/source/content/views/view_theme_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_theme_manager.cpp b/plugins/builtin/source/content/views/view_theme_manager.cpp index 6978e2f9c..9c19b5928 100644 --- a/plugins/builtin/source/content/views/view_theme_manager.cpp +++ b/plugins/builtin/source/content/views/view_theme_manager.cpp @@ -38,7 +38,7 @@ namespace hex::plugin::builtin { auto color = handler.getFunction(colorId); // Draw a color picker for the color - if (ImGui::ColorEdit4(colorName.c_str(), reinterpret_cast(&color.Value), ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf)) { + if (ImGui::ColorEdit4(colorName.c_str(), &color.Value.x, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf)) { // Update the color value handler.setFunction(colorId, color); EventThemeChanged::post();