From 0dc33a4dd49eb560e98b24090969fd618a4c6198 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 18 Oct 2025 08:58:32 +0200 Subject: refactor memops --- src/ui/ui_contacts.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ui/ui_contacts.cpp') diff --git a/src/ui/ui_contacts.cpp b/src/ui/ui_contacts.cpp index cc5a7e0..ff1f424 100644 --- a/src/ui/ui_contacts.cpp +++ b/src/ui/ui_contacts.cpp @@ -14,13 +14,14 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "strops.hpp" -#include "config.hpp" #include "ui.hpp" #include "imgui.h" +#include "strops.hpp" +#include "config.hpp" +#include "memops.hpp" +#include "locales.hpp" #include "administration.hpp" #include "administration_writer.hpp" -#include "locales.hpp" static ui::view_state current_view_state = ui::view_state::LIST_ALL; static contact selected_for_removal; @@ -42,7 +43,7 @@ void ui::setup_contacts() { current_view_state = ui::view_state::LIST_ALL; active_contact = active_contact = administration::contact_create_empty(); - memset(&selected_for_removal, 0, sizeof(contact)); + memops::zero(&selected_for_removal, sizeof(contact)); } void draw_addressee_form_ex(delivery_info* buffer, bool viewing_only = false) -- cgit v1.2.3-70-g09d2