From ab96729847abe2715f286d07eabb353adfce2c69 Mon Sep 17 00:00:00 2001 From: Gauthier Quesnel Date: Fri, 11 Oct 2024 10:34:58 +0200 Subject: [PATCH] app: removes old style selector --- app/gui/application.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/gui/application.hpp b/app/gui/application.hpp index ead5dcd3..6aa3eca0 100644 --- a/app/gui/application.hpp +++ b/app/gui/application.hpp @@ -26,7 +26,7 @@ namespace irt { template -constexpr std::ptrdiff_t offset_of(const M T::* member) +constexpr std::ptrdiff_t offset_of(const M T::*member) { return reinterpret_cast( &(reinterpret_cast(0)->*member)); @@ -46,7 +46,7 @@ constexpr std::ptrdiff_t offset_of(const M T::* member) //! } //! @endcode template -constexpr T& container_of(M* ptr, const M T::* member) +constexpr T& container_of(M* ptr, const M T::*member) { return *reinterpret_cast(reinterpret_cast(ptr) - offset_of(member)); @@ -824,7 +824,6 @@ struct settings_window { u32 gui_hovered_component_color; u32 gui_selected_component_color; - int style_selector = 0; int automatic_layout_iteration_limit = 200; float automatic_layout_x_distance = 350.f; float automatic_layout_y_distance = 350.f;