diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-18 08:58:32 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-18 08:58:32 +0200 |
| commit | 0dc33a4dd49eb560e98b24090969fd618a4c6198 (patch) | |
| tree | 77e7070bcbbcc9db4e0c5552ae83a33d3b2f9cfc /src/ui/ui_contacts.cpp | |
| parent | c1d950f2765cde614c8411b4effb3850146ba598 (diff) | |
refactor memops
Diffstat (limited to 'src/ui/ui_contacts.cpp')
| -rw-r--r-- | src/ui/ui_contacts.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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) |
